src/danog/MadelineProto/Stream/Transport/DefaultStream.php
public function read(): Promise
    {
        return $this->stream ? $this->stream->read() : new \Amp\Success(null);
    }
public function read(): Promise
    {
        return $this->stream ? $this->stream->read() : new \Amp\Success(null);
    }
public function read ( ) : Promise { return $ this -> stream ? $ this -> stream -> read ( ) : new \ Amp \ Success ( null ) ; }
Async chunked read.

@return Promise
Async chunked read .