Skip to content

Commit

Permalink
udpate readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bedrock-adam committed Dec 4, 2023
1 parent d6c229f commit 0ceea69
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,14 @@ end
##### a. update block to queue an event handler worker

```ruby
loop do
while running
Outboxer::Message.publish! do |outboxer_messageable|
EventHandlerWorker.perform_async({ 'id' => outboxer_messageable.id })
case outboxer_messageable.class.name
when 'Models::Event'
EventHandlerWorker.perform_async({ 'id' => outboxer_messageable.id })

published_events << outboxer_messageable
end
end
end
```
Expand Down

0 comments on commit 0ceea69

Please sign in to comment.