ProcessInterface
extends
CancellationScopeInterface, Identifiable
in
Tags
Table of Contents
Methods
- cancel() : void
- The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
- getContext() : WorkflowContextInterface
- isCancelled() : bool
- Returns true if cancel request was sent to scope.
- isDetached() : bool
- Detached scopes can continue working even if parent scope was cancelled.
- onCancel() : $this
- Triggered when cancel request sent to scope.
Methods
cancel()
The `cancel()` method notifies the creator of the promise that there is no further interest in the results of the operation.
public
cancel() : void
Once a promise is settled (either fulfilled or rejected), calling cancel()
on
a promise has no effect.
getContext()
public
getContext() : WorkflowContextInterface
Return values
WorkflowContextInterfaceisCancelled()
Returns true if cancel request was sent to scope.
public
isCancelled() : bool
Return values
boolisDetached()
Detached scopes can continue working even if parent scope was cancelled.
public
isDetached() : bool
Return values
boolonCancel()
Triggered when cancel request sent to scope.
public
onCancel(callable $then) : $this
Parameters
- $then : callable