News for hackers. Stuff that matters.
Re:Rust without the async (hard) part by abiro on Thursday June 09, 2022 @12:13PM (#31683053)
Even simpler to use `futures::executor::block_on`. No need to create a runtime, you can just call the function.

https://docs.rs/futures/latest/futures/executor/fn.block_on....

Re:Rust without the async (hard) part by Matthias247 on Thursday June 09, 2022 @01:10PM (#31683907)
That will only allow to run futures which have no IO dependency. Other typically expect a certain runtime to be running, because they eg use the epoll loop of that runtime to make progress.