Function task
Adds a function to run in the task queue when it is next run()
and returns
a promise that is fulfilled or rejected with the result.
Namespace: GuzzleHttp\Promise
Deprecated: task will be removed in guzzlehttp/promises:2.0. Use Utils::task instead.
Located at functions.php
Deprecated: task will be removed in guzzlehttp/promises:2.0. Use Utils::task instead.
Located at functions.php
Parameters summary
callable |
$task |
Task function to run. |
Return value summary
|
PromiseInterface |