pub async fn flush<S: AsyncWrite + Unpin>(stream: &mut S) -> Result<()>
Wait for delivery of accepted writes.