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.
mixed |
$reason |
Promise or reason. |
|
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. |
|
PromiseInterface |