Function promise_for
Creates a promise for a value if the value is not a promise.
Namespace: GuzzleHttp\Promise
Deprecated: promise_for will be removed in guzzlehttp/promises:2.0. Use Create::promiseFor instead.
Located at functions.php
Deprecated: promise_for will be removed in guzzlehttp/promises:2.0. Use Create::promiseFor instead.
Located at functions.php
Parameters summary
mixed |
$value |
Promise or value. |
Return value summary
|
PromiseInterface |