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
{{ message }}
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.
Hi, I am trying to write a function that takes a stream and splits it into a few sinks.
It's my first code with futures-await so I might be doing something strange here.
This is what my function looks like:
Ah it looks like this is a bad error message! The problem here is that await! is in a closure when it only works inside an #[async] function or an async! block
I see. @alexcrichton: What is the reasonable way to make the code from above work?
Can I put #[async] somehow above the closure, or do I have to turn it into a separate function?
Thank you for your help!
Hi, I am trying to write a function that takes a stream and splits it into a few sinks.
It's my first code with futures-await so I might be doing something strange here.
This is what my function looks like:
When trying to compile, I get this error message:
What is the meaning of this error message? What can I do to make my code compile?
The version of my compiler:
I have
futures-await = "0.1.0"
in my Cargo.toml.Thank you for your extraordinary work on futures-await!
The text was updated successfully, but these errors were encountered: