src/Internal/GeneratorContainer.php
public function valid()
    {
        try {
            $this->g->current();
            return $this->e === null && $this->g->valid() && $this->g->key() !== CoInterface::RETURN_WITH;
        } catch (\Throwable $e) {} catch (\Exception $e) {}
        $this->e = $e;
        return false;
    }
public function valid()
    {
        try {
            $this->g->current();
            return $this->e === null && $this->g->valid() && $this->g->key() !== CoInterface::RETURN_WITH;
        } catch (\Throwable $e) {} catch (\Exception $e) {}
        $this->e = $e;
        return false;
    }
public function valid ( ) { try { $ this -> g -> current ( ) ; return $ this -> e === null && $ this -> g -> valid ( ) && $ this -> g -> key ( ) !== CoInterface :: RETURN_WITH ; } catch ( \ Throwable $ e ) { } catch ( \ Exception $ e ) { } $ this -> e = $ e ; return false ; }
Return whether generator is actually working.
@return bool
Return whether generator is actually working .