pub async fn wait_for_events<C: ServerConnector>(
agent: &mut Agent<C>,
) -> Vec<Event>
Expand description
Wait for new events, or Error::Disconnected when stream is closed and will not reconnect.
pub async fn wait_for_events<C: ServerConnector>(
agent: &mut Agent<C>,
) -> Vec<Event>
Wait for new events, or Error::Disconnected when stream is closed and will not reconnect.