Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add io::lines #53

Closed
oberien opened this issue Oct 6, 2016 · 1 comment
Closed

Add io::lines #53

oberien opened this issue Oct 6, 2016 · 1 comment

Comments

@oberien
Copy link
Contributor

oberien commented Oct 6, 2016

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.

/cc @alexcrichton @carllerche

@oberien oberien mentioned this issue Oct 6, 2016
@alexcrichton
Copy link
Contributor

Done in https://github.com/alexcrichton/tokio-io, the migration of this crate will be tracked by #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants