src/danog/MadelineProto/Stream/ConnectionContext.php
public function getStreamAsync(string $buffer = ''): \Generator
    {
        list($clazz, $extra) = $this->nextStreams[$this->key--];
        $obj = new $clazz();
        if ($obj instanceof ProxyStreamInterface) {
            $obj->setExtra($extra);
        }
        yield $obj->connect($this, $buffer);

        return $obj;
    }
public function getStreamAsync(string $buffer = ''): \Generator
    {
        list($clazz, $extra) = $this->nextStreams[$this->key--];
        $obj = new $clazz();
        if ($obj instanceof ProxyStreamInterface) {
            $obj->setExtra($extra);
        }
        yield $obj->connect($this, $buffer);

        return $obj;
    }
public function getStreamAsync ( string $ buffer = '' ) : \ Generator { list ( $ clazz , $ extra ) = $ this -> nextStreams [ $ this -> key -- ] ; $ obj = new $ clazz ( ) ; if ( $ obj instanceof ProxyStreamInterface ) { $ obj -> setExtra ( $ extra ) ; } yield $ obj -> connect ( $ this , $ buffer ) ; return $ obj ; }
Get a stream from the stream chain.

@internal Generator func

@return \Generator
Get a stream from the stream chain .