promiseFor()
promiseFor(mixed $value) : \GuzzleHttp\Promise\PromiseInterface
Creates a promise for a value if the value is not a promise.
Parameters
mixed | $value | Promise or value. |
rejectionFor(mixed $reason) : \GuzzleHttp\Promise\PromiseInterface
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.
mixed | $reason | Promise or reason. |