SDK for PHP V3

State
in package

FinalYes

Table of Contents

Methods

isFulfilled()  : bool
Returns true if a promise is fulfilled.
isPending()  : bool
Returns true if a promise is pending.
isRejected()  : bool
Returns true if a promise is rejected.
isSettled()  : bool
Returns true if a promise is fulfilled or rejected.

Methods

isFulfilled()

Returns true if a promise is fulfilled.

public static isFulfilled(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Return values
bool

isPending()

Returns true if a promise is pending.

public static isPending(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Return values
bool

isRejected()

Returns true if a promise is rejected.

public static isRejected(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Return values
bool

isSettled()

Returns true if a promise is fulfilled or rejected.

public static isSettled(PromiseInterface $promise) : bool
Parameters
$promise : PromiseInterface
Return values
bool
<-- modeled_exceptions -->
On this page