You are here

private function EachPromise::advanceIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/promises/src/EachPromise.php \GuzzleHttp\Promise\EachPromise::advanceIterator()
2 calls to EachPromise::advanceIterator()
EachPromise::refillPending in vendor/guzzlehttp/promises/src/EachPromise.php
EachPromise::step in vendor/guzzlehttp/promises/src/EachPromise.php

File

vendor/guzzlehttp/promises/src/EachPromise.php, line 165

Class

EachPromise
Represents a promise that iterates over many promises and invokes side-effect functions in the process.

Namespace

GuzzleHttp\Promise

Code

private function advanceIterator() {
  try {
    $this->iterable
      ->next();
    return true;
  } catch (\Exception $e) {
    $this->aggregate
      ->reject($e);
    return false;
  }
}