tokio/tokio-net/tests/tcp_split.rs
Carl Lerche 2f91c85ad8
io: bring back split utility (#1521)
Bring back `split` utility as a free fn instead of a method on
`AsyncRead`. This utility wraps the `stream` in an `Arc` and uses mutual
exclusion to ensure correct access.

Additionally, the specialized `split_mut` fn on TcpStream and UdsStream
is promoted to `split`.
2019-08-30 20:46:07 -07:00

2 lines
46 B
XML

// TODO: write tests using TcpStream::split()