Function rejection_for
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.
Namespace: GuzzleHttp\Promise
Deprecated: rejection_for will be removed in guzzlehttp/promises:2.0. Use Create::rejectionFor instead.
Located at functions.php
Deprecated: rejection_for will be removed in guzzlehttp/promises:2.0. Use Create::rejectionFor instead.
Located at functions.php
Parameters summary
mixed |
$reason |
Promise or reason. |
Return value summary
|
PromiseInterface |