|
| static | exceptionFor ($reason) |
| | Create an exception for a rejected promise value.
|
| |
| static | iterFor ($value) |
| | Returns an iterator for the given value.
|
| |
|
static | promiseFor ($value) |
| |
| static | rejectionFor ($reason) |
| | Creates a rejected promise for a reason if the reason is not a promise.
|
| |
◆ exceptionFor()
| static GuzzleHttp\Promise\Create::exceptionFor |
( |
| $reason | ) |
|
|
static |
Create an exception for a rejected promise value.
- Parameters
-
◆ iterFor()
| static GuzzleHttp\Promise\Create::iterFor |
( |
| $value | ) |
|
|
static |
Returns an iterator for the given value.
- Parameters
-
◆ rejectionFor()
| static GuzzleHttp\Promise\Create::rejectionFor |
( |
| $reason | ) |
|
|
static |
Creates a rejected promise for a reason if the reason is not a promise.
If the provided reason is a promise, then it is returned as-is.
- Parameters
-
| mixed | $reason | Promise or reason. |
The documentation for this class was generated from the following file:
- lib/guzzlehttp/promises/src/Create.php