PHP Class Kraken\Promise\Deferred

Inheritance: implements Kraken\Promise\DeferredInterface
Show file Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$cancelCallback callable
$canceller callable | null
$promise Kraken\Promise\PromiseInterface | null
$rejectCallback callable
$resolveCallback callable

Public Methods

Method Description
__construct ( callable $canceller = null )
__destruct ( )
cancel ( $reason = null )
getPromise ( )
reject ( $reason = null )
resolve ( $value = null )

Method Details

__construct() public method

public __construct ( callable $canceller = null )
$canceller callable

__destruct() public method

public __destruct ( )

cancel() public method

public cancel ( $reason = null )

getPromise() public method

public getPromise ( )

reject() public method

public reject ( $reason = null )

resolve() public method

public resolve ( $value = null )

Property Details

$cancelCallback protected property

protected callable $cancelCallback
return callable

$canceller protected property

protected callable|null $canceller
return callable | null

$promise protected property

protected PromiseInterface,Kraken\Promise|null $promise
return Kraken\Promise\PromiseInterface | null

$rejectCallback protected property

protected callable $rejectCallback
return callable

$resolveCallback protected property

protected callable $resolveCallback
return callable