protected function pop(): \Generator
    {
        while (!$this->statements->isEmpty()) {
            $statement = $this->statements->shift();
            \assert($statement instanceof Statement);

            if ($statement->isAlive()) {
                return $statement;
            }
        }

        $statement = yield ($this->prepare)($this->sql);
        \assert($statement instanceof Statement);
        return $statement;
    }
protected function pop(): \Generator
    {
        while (!$this->statements->isEmpty()) {
            $statement = $this->statements->shift();
            \assert($statement instanceof Statement);

            if ($statement->isAlive()) {
                return $statement;
            }
        }

        $statement = yield ($this->prepare)($this->sql);
        \assert($statement instanceof Statement);
        return $statement;
    }
protected function pop ( ) : \ Generator { while ( ! $ this -> statements -> isEmpty ( ) ) { $ statement = $ this -> statements -> shift ( ) ; \ assert ( $ statement instanceof Statement ) ; if ( $ statement -> isAlive ( ) ) { return $ statement ; } } $ statement = yield ( $ this -> prepare ) ( $ this -> sql ) ; \ assert ( $ statement instanceof Statement ) ; return $ statement ; }
Coroutine returning a Statement object from the pool or creating a new Statement.

@return \Generator
Coroutine returning a Statement object from the pool or creating a new Statement .