News for hackers. Stuff that matters.
Re:Await in Rust by bryanlarsen on Monday August 12, 2019 @10:26AM (#20675687)
> How do you deal with a situations when you have non-async/await code, and then you need to call just one function, which happened to be "async", and you can't do until you mark all your functions async as well?

Just call the poll function on your Future.

Just because Javascript sucks doesn't mean the similar feature in Rust does too. :)

There are no comments on this comment yet.