Documentation

CancellationScopeInterface extends PromiseInterface

Tags
template

T

yield

T

extends

PromiseInterface<T>

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.
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.

isDetached()

Detached scopes can continue working even if parent scope was cancelled.

public isDetached() : bool
Return values
bool

onCancel()

Triggered when cancel request sent to scope.

public onCancel(callable $then) : $this
Parameters
$then : callable
Return values
$this

        
On this page

Search results