InvokesQueuedResponseCallbacks
trait InvokesQueuedResponseCallbacks
Properties
| protected array | $thenCallbacks | ||
| protected array | $catchCallbacks |
Methods
mixed
Details
at line 20
protected mixed
withCallbacks(Closure $action)
Invoke the given Closure then invoke the "then" callbacks.
at line 34
InvokesQueuedResponseCallbacks
then(Closure $callback)
Add a callback to be executed after the agent is invoked.
at line 44
InvokesQueuedResponseCallbacks
catch(Closure $callback)
Add a callback to be executed if the job fails.
at line 54
void
failed(Throwable|null $e)
Handle a job failure.