Function unwrap
Waits on all of the provided promises and returns the fulfilled values.
Returns an array that contains the value of each promise (in the same order the promises were provided). An exception is thrown if any of the promises are rejected.
Namespace: GuzzleHttp\Promise
Deprecated: unwrap will be removed in guzzlehttp/promises:2.0. Use Utils::unwrap instead.
Located at functions.php
Deprecated: unwrap will be removed in guzzlehttp/promises:2.0. Use Utils::unwrap instead.
Located at functions.php
Parameters summary
iterable<PromiseInterface> |
$promises |
Iterable of PromiseInterface objects to wait on. |
Return value summary
array
|
array |
Thrown exceptions summary
Exception
|
on error |
Throwable
|
on error in PHP >=7 |