Is
in package
FinalYes
Table of Contents
Methods
- fulfilled() : bool
- Returns true if a promise is fulfilled.
- pending() : bool
- Returns true if a promise is pending.
- rejected() : bool
- Returns true if a promise is rejected.
- settled() : bool
- Returns true if a promise is fulfilled or rejected.
Methods
fulfilled()
Returns true if a promise is fulfilled.
public
static fulfilled(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface
Return values
boolpending()
Returns true if a promise is pending.
public
static pending(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface
Return values
boolrejected()
Returns true if a promise is rejected.
public
static rejected(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface
Return values
boolsettled()
Returns true if a promise is fulfilled or rejected.
public
static settled(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface