PHP Class Icicle\Awaitable\Internal\RejectedAwaitable

Inheritance: extends Icicle\Awaitable\Internal\ResolvedAwaitable
Datei anzeigen Open project: icicleio/icicle

Public Methods

Method Description
__construct ( Throwable $reason )
done ( callable $onFulfilled = null, callable $onRejected = null )
isFulfilled ( ) : boolean
isRejected ( ) : boolean
then ( callable $onFulfilled = null, callable $onRejected = null ) : Icicle\Awaitable\Awaitable
wait ( )

Method Details

__construct() public method

public __construct ( Throwable $reason )
$reason Throwable

done() public method

public done ( callable $onFulfilled = null, callable $onRejected = null )
$onFulfilled callable
$onRejected callable

isFulfilled() public method

public isFulfilled ( ) : boolean
return boolean

isRejected() public method

public isRejected ( ) : boolean
return boolean

then() public method

public then ( callable $onFulfilled = null, callable $onRejected = null ) : Icicle\Awaitable\Awaitable
$onFulfilled callable
$onRejected callable
return Icicle\Awaitable\Awaitable

wait() public method

public wait ( )