Skip to content

Yield publisher hash to block as first positional argument #300

@bedrock-adam

Description

@bedrock-adam

Motivation (Why)

Allows calling Publisher.stop(id: publisher[:id]) to help with TDD but also offer a more controlled way outside of infrastructure layer / signals e.g.

Outboxer::Publisher.publish_messages do |publisher, messages|
  # TODO: publish batch of messages to broker

  Publisher.stop(id: publisher[:id])
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions