We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e11752 commit b71e6c5Copy full SHA for b71e6c5
scheduler.rst
@@ -634,7 +634,7 @@ being transferred and processed by its handler::
634
return $this->schedule ??= (new Schedule())
635
->with(
636
// ...
637
- );
+ )
638
->before(function(PreRunEvent $event) {
639
$message = $event->getMessage();
640
$messageContext = $event->getMessageContext();
@@ -647,13 +647,13 @@ being transferred and processed by its handler::
647
648
// allow to call the ShouldCancel() and avoid the message to be handled
649
$event->shouldCancel(true);
650
- }
+ })
651
->after(function(PostRunEvent $event) {
652
// Do what you want
653
654
->onFailure(function(FailureEvent $event) {
655
656
+ });
657
}
658
659
0 commit comments