pub async fn wait_for_close(stream: &mut EventStream) -> Result<()>
Expand description
Wait for a close event.
Calling close() on a transport internally sends the message view the event loop so we still need to drive the event loop after calling close.