Amp\Artax\IteratorWriter::afterElementWrite PHP Méthode

afterElementWrite() private méthode

private afterElementWrite ( Exception $error = null, $result = null )
$error Exception
    private function afterElementWrite(\Exception $error = null, $result = null)
    {
        $this->iterator->next();
        if ($error) {
            $this->promisor->fail($error);
        } elseif ($this->iterator->valid()) {
            $this->writeNextElement();
        } else {
            $this->promisor->succeed();
        }
    }