- Full name:
\GuzzleHttp\Promise\Is
- This class is marked as final and can't be subclassed
- This class is a Final class
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 |
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 |
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 |
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 |