src/danog/MadelineProto/Stream/MTProtoTransport/ObfuscatedStream.php
public function bufferReadAsync(int $length): \Generator
    {
        return @$this->decrypt->encrypt(yield $this->read_buffer->bufferRead($length));
    }
public function bufferReadAsync(int $length): \Generator
    {
        return @$this->decrypt->encrypt(yield $this->read_buffer->bufferRead($length));
    }
public function bufferReadAsync ( int $ length ) : \ Generator { return @ $ this -> decrypt -> encrypt ( yield $ this -> read_buffer -> bufferRead ( $ length ) ) ; }
Decrypts read data asynchronously.

@param Promise $promise Promise that resolves with a string when new data is available or `null` if the stream has closed.

@throws PendingReadError Thrown if another read operation is still pending.

@return Generator That resolves with a string when the provided promise is resolved and the data is decrypted
Decrypts read data asynchronously .