Expand description
Splits a stream into AsyncRead
and AsyncWrite
halves.
Examples
use futures_lite::io::{self, Cursor};
let stream = Cursor::new(vec![]);
let (mut reader, mut writer) = io::split(stream);
Splits a stream into AsyncRead
and AsyncWrite
halves.
use futures_lite::io::{self, Cursor};
let stream = Cursor::new(vec![]);
let (mut reader, mut writer) = io::split(stream);