pub fn split<T: AsyncRead + AsyncWrite>(
stream: T,
) -> (ReadHalf<T>, WriteHalf<T>)Expand description
Splits a single value implementing AsyncRead + AsyncWrite into separate
AsyncRead and AsyncWrite handles with or without internal
synchronization dependes on whether sync feature is turned on.