Skip to content

Commit

Permalink
Improve little bit of readability in code comment (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojhaujjwal authored and acrobat committed Oct 8, 2017
1 parent ec526d0 commit b38d402
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/consuming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ object should handle which messages, you are required to register them first.
// $router = new \Bernard\Router\ContainerAwareRouter($container);
// $router->add('SendNewsletter', 'my.service.id');
// Create a Consumer and start the loop. The second argument is optional and is an array
// Create a Consumer and start the loop.
$consumer = new Consumer($router, $eventDispatcher);
// The second argument is optional and is an array
// of options. Currently only ``max-runtime`` is supported which specifies the max runtime
// in seconds.
$consumer = new Consumer($router, $eventDispatcher);
$consumer->consume($queueFactory->create('send-newsletter'), array(
'max-runtime' => 900,
));
Expand Down

0 comments on commit b38d402

Please sign in to comment.