Skip to content

Commit 1e74c13

Browse files
committed
Added some comments to the readme.
1 parent a654d47 commit 1e74c13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ $destinationDispatcher = new SynchronousMessageDispatcher();
4949
$messagesInOutbox = $dispatcher->retrieveNotDispatchedMessages(100);
5050

5151
foreach ($messagesInOutbox as $messageInOutbox) {
52+
53+
// One message in the outbox can result in N number of messages to dispatch
5254
$destinationDispatcher->dispatch(...iterator_to_array($messageInOutbox->messages()));
55+
5356
// Mark messages as dispatched
5457
$dispatcher->markAsDispatched($messagesInOutbox);
5558

0 commit comments

Comments
 (0)