pub fn async_pipe() -> (AsyncWriter, AsyncReader)Expand description
Creates a pair of asynchronous writer and reader objects.
This function returns a tuple containing an AsyncWriter and an AsyncReader.
The AsyncWriter 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 (AsyncWriter, AsyncReader).
§Example
use io_pipe::async_pipe;
let (writer, reader) = async_pipe();
// Use writer to write data and reader to read data asynchronously