Re:Await in Rust
by ummonk on Monday August 12, 2019 @12:29PM
(#20676962)
I think the people criticizing it are, like me, coming from other languages where blocking on async doesn't make your function sync. The asyncness still ends up propagating to the caller function in such languages.
[ Parent
| on HN ]
Thank you for putting it explicitly, everything here suddenly makes so much more sense.
But yes, in Rust async is not a plague that irredeemably taints everything. You can choose to use anything that is async synchronously if you choose to, just by calling .poll() on the future at the callsite.