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

Begin to use async/await in pants #7473

Closed
stuhood opened this issue Apr 1, 2019 · 1 comment
Closed

Begin to use async/await in pants #7473

stuhood opened this issue Apr 1, 2019 · 1 comment

Comments

@stuhood
Copy link
Member

stuhood commented Apr 1, 2019

See http://areweasyncyet.rs/. Blocked on rust-lang/rust#50547.

I've experimented with this a little bit using the instructions from https://jsdw.me/posts/rust-asyncawait-preview/ ... although I used a slightly older nightly (February 2019), it's clear that there will be a fair number of limitations in place when this stabilizes:

I've pushed the branch I was working in over here: master...twitter:stuhood/tokio-async-await ... the first few methods I attempted to adapt ran into the above issues, but I did find a good example to adapt, and the result was easier to read, did fewer allocations, and would require less cloning.

@Eric-Arellano
Copy link
Contributor

Now being used :D

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