pub fn async_reader_pipe() -> (Writer, AsyncReader)Expand description
Creates a pair of synchronous writer and asynchronous reader objects.
This function returns a tuple containing an Writer and an AsyncReader.
The Writer can be used to write data, which can then be read from the AsyncReader.
§Arguments
buffer_size- The size of the internal buffer used for communication between the writer and reader.
§Returns
A tuple containing (Writer, AsyncReader).
§Example
use io_pipe::async_reader_pipe;
let (writer, reader) = async_reader_pipe();
// Use writer to write data synchronously and reader to read data asynchronously