DeferredCallback
class DeferredCallback (View source)
Methods
void
__construct(callable $callback, string|null $name = null, bool $always = false)
Create a new deferred callback instance.
name(string $name)
Specify the name of the deferred callback so it can be cancelled later.
always(bool $always = true)
Indicate that the deferred callback should run even on unsuccessful requests and jobs.
void
__invoke()
Invoke the deferred callback.
Details
void
__construct(callable $callback, string|null $name = null, bool $always = false)
Create a new deferred callback instance.
DeferredCallback
name(string $name)
Specify the name of the deferred callback so it can be cancelled later.
DeferredCallback
always(bool $always = true)
Indicate that the deferred callback should run even on unsuccessful requests and jobs.
void
__invoke()
Invoke the deferred callback.