PHP Class Icicle\Awaitable\Internal\FulfilledAwaitable

Inheritance: extends Icicle\Awaitable\Internal\ResolvedAwaitable
Show file Open project: icicleio/icicle

Public Methods

Method Description
__construct ( mixed $value )
delay ( float $time ) : Awaitable
done ( callable $onFulfilled = null, callable $onRejected = null )
isFulfilled ( ) : boolean
isRejected ( ) : boolean
then ( callable $onFulfilled = null, callable $onRejected = null ) : Awaitable
wait ( )

Method Details

__construct() public method

public __construct ( mixed $value )
$value mixed Anything other than an Awaitable object.

delay() public method

public delay ( float $time ) : Awaitable
$time float
return Awaitable

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 ) : Awaitable
$onFulfilled callable
$onRejected callable
return Awaitable

wait() public method

public wait ( )