pub async fn copy_async_to_sync<R: AsyncRead, W: Write + ?Sized>( reader: R, writer: &mut W, ) -> Result<usize>
Reads from an async source and writes to a sync destination. Does not spawn a task, so writes will block.