You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in the Chat example PR it would be nice to have a function in tokio-core, which takes a BufRead and returns Stream<Item=String, Error=io::Error>. This would make it easy to read lines asynchronously from a TcpStream/Read.
On the other hand side, there is tokio-line, a repository based on the idea of line-based asynchronous handling. Adding such a method to tokio-core would definitely interfere with the idea of tokio-line.
As discussed in the Chat example PR it would be nice to have a function in tokio-core, which takes a
BufRead
and returnsStream<Item=String, Error=io::Error>
. This would make it easy to read lines asynchronously from aTcpStream
/Read
.On the other hand side, there is tokio-line, a repository based on the idea of line-based asynchronous handling. Adding such a method to tokio-core would definitely interfere with the idea of tokio-line.
/cc @alexcrichton @carllerche
The text was updated successfully, but these errors were encountered: