private function EachPromise::checkIfFinished in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/promises/src/EachPromise.php \GuzzleHttp\Promise\EachPromise::checkIfFinished()
1 call to EachPromise::checkIfFinished()
- EachPromise::step in vendor/
guzzlehttp/ promises/ src/ EachPromise.php
File
- vendor/
guzzlehttp/ promises/ src/ EachPromise.php, line 192
Class
- EachPromise
- Represents a promise that iterates over many promises and invokes side-effect functions in the process.
Namespace
GuzzleHttp\PromiseCode
private function checkIfFinished() {
if (!$this->pending && !$this->iterable
->valid()) {
// Resolve the promise if there's nothing left to do.
$this->aggregate
->resolve(null);
return true;
}
return false;
}