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
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:
async/await will not be usable initially in traits (eg impl X for Y), but is usable with inherent methods (eg impl Y)
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.
The text was updated successfully, but these errors were encountered:
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:
async/await
will not be usable initially in traits (egimpl X for Y
), but is usable with inherent methods (egimpl Y
)async
methods may not be recursive (async fn cannot be recursive rust-lang/rust#53690)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.
The text was updated successfully, but these errors were encountered: