pub async fn run_until_disconnected(self) -> Result<(), sender::ReadError> {
        loop {
            // TODO review doc comments regarding disconnects
            self.step().await?;
        }
    }
/// Run the client by repeatedly calling [`Client::step`] until a graceful disconnection
/// occurs, or a network error occurs. Incoming updates are ignored and simply dropped.
/// instead.
///
/// # Examples
///
/// ```
/// # async fn f(mut client: grammers_client::Client) -> Result<(), Box<dyn std::error::Error>> {
/// client.run_until_disconnected().await?;
/// # Ok(())
/// # }
/// ```
Run the client by repeatedly calling [`Client::step`] until a graceful disconnection
occurs, or a network error occurs. Incoming updates are ignored and simply dropped.
instead.
Run the client by repeatedly calling [ ` Client :: step ` ] until a graceful disconnection occurs or a network error occurs . Incoming updates are ignored and simply dropped . instead .
pub async fn run_until_disconnected(self) -> Result<(), sender::ReadError> {
        loop {
            // TODO review doc comments regarding disconnects
            self.step().await?;
        }
    }
pub async fn run_until_disconnected ( self ) -> Result < ( ) , sender :: ReadError > { loop { // TODO review doc comments regarding disconnects self . step ( ) . await ? ; } }
Run the client by repeatedly calling [`Client::step`] until a graceful disconnection
occurs, or a network error occurs.
Run the client by repeatedly calling [ ` Client :: step ` ] until a graceful disconnection occurs or a network error occurs .
self
self
examples
None
async fn f(mut client: grammers_client::client) -> result<(), box<dyn std::error::error>> {
None
ok(())
None
}
None