Is
in package
Table of Contents
- 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
bool —pending()
Returns true if a promise is pending.
public
static pending(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface
Return values
bool —rejected()
Returns true if a promise is rejected.
public
static rejected(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface
Return values
bool —settled()
Returns true if a promise is fulfilled or rejected.
public
static settled(PromiseInterface $promise) : bool
Parameters
- $promise : PromiseInterface