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

Async methods should return tokio.rs Future #24

Open
vimmerru opened this issue Sep 25, 2018 · 0 comments
Open

Async methods should return tokio.rs Future #24

vimmerru opened this issue Sep 25, 2018 · 0 comments

Comments

@vimmerru
Copy link

tokio.rs is now "default" solution for asynchronous programming in Rust. It can be quite easy to convert callback to Future with single-shot channel. but 90+% of users will have to write it's own Future based wrapper.

I suggest to change API to return Future instead of callback registration.

@vimmerru vimmerru changed the title Async methods should retunr tokio.rs Future Async methods should return tokio.rs Future Sep 25, 2018
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

1 participant