Skip to content

Latest commit

 

History

History
125 lines (51 loc) · 1.48 KB

File metadata and controls

125 lines (51 loc) · 1.48 KB

Is

  • Full name: \GuzzleHttp\Promise\Is
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

pending

Returns true if a promise is pending.

public static pending(\GuzzleHttp\Promise\PromiseInterface $promise): bool
  • This method is static.

Parameters:

Parameter Type Description
$promise \GuzzleHttp\Promise\PromiseInterface

settled

Returns true if a promise is fulfilled or rejected.

public static settled(\GuzzleHttp\Promise\PromiseInterface $promise): bool
  • This method is static.

Parameters:

Parameter Type Description
$promise \GuzzleHttp\Promise\PromiseInterface

fulfilled

Returns true if a promise is fulfilled.

public static fulfilled(\GuzzleHttp\Promise\PromiseInterface $promise): bool
  • This method is static.

Parameters:

Parameter Type Description
$promise \GuzzleHttp\Promise\PromiseInterface

rejected

Returns true if a promise is rejected.

public static rejected(\GuzzleHttp\Promise\PromiseInterface $promise): bool
  • This method is static.

Parameters:

Parameter Type Description
$promise \GuzzleHttp\Promise\PromiseInterface