function Promise::invokeWaitList
1 call to Promise::invokeWaitList()
- Promise::waitIfPending in vendor/
guzzlehttp/ promises/ src/ Promise.php
File
-
vendor/
guzzlehttp/ promises/ src/ Promise.php, line 265
Class
- Promise
- Promises/A+ implementation that avoids recursion when possible.
Namespace
GuzzleHttp\PromiseCode
private function invokeWaitList() : void {
$waitList = $this->waitList;
$this->waitList = null;
foreach ($waitList as $result) {
do {
$result->waitIfPending();
$result = $result->result;
} while ($result instanceof Promise);
if ($result instanceof PromiseInterface) {
$result->wait(false);
}
}
}