PHP Class Icicle\Awaitable\Internal\FulfilledAwaitable

Inheritance: extends Icicle\Awaitable\Internal\ResolvedAwaitable
Afficher le fichier Open project: icicleio/icicle

Méthodes publiques

Méthode 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 méthode

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

delay() public méthode

public delay ( float $time ) : Awaitable
$time float
Résultat Awaitable

done() public méthode

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

isFulfilled() public méthode

public isFulfilled ( ) : boolean
Résultat boolean

isRejected() public méthode

public isRejected ( ) : boolean
Résultat boolean

then() public méthode

public then ( callable $onFulfilled = null, callable $onRejected = null ) : Awaitable
$onFulfilled callable
$onRejected callable
Résultat Awaitable

wait() public méthode

public wait ( )