This essentially brings top-level await to Rust, which is something I've wanted in other languages for years now. It's also generic over any backing runtime, so you can switch between Romio + Juliex and Tokio by changing a single line. Very excited for the future of async Rust!
-
-
Show this thread
-
New conversation -
-
-
What do fns with return types look like?
-
Runtime supports returning Result from main just like you'd expect it to. And you can call other async fns from main without any problems either (: Example: https://github.com/rustasync/runtime/blob/master/examples/guessing.rs#L66 …
End of conversation
New conversation -
-
-
So cool! Does the default runtime support threadpool and async?
-
It does!
End of conversation
New conversation -
-
-
finally! Now … dinner next week? -
For sure! DM me?
- 1 more reply
New conversation -
-
-
Do you think we'll ever be able to get async / await in a no_std environment?
-
In itself async/await should be able to be implemented on no_std! -- It's more of a question about _how_ this can be implemented, and while there's experiments such as https://github.com/Nemo157/embrio-rs …, there's no definitive answer yet. But it def feels like it might be possible!
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.