News for hackers. Stuff that matters.
Re:Async Rust Is A Bad Language by Pauan on Friday September 08, 2023 @01:56PM (#37437034)
Yes, you can do that. You can use `block_on` to convert an async Future into a synchronous blocking call. So it is entirely possible to convert from the async world back into the sync world.
Re:Async Rust Is A Bad Language by likeabbas on Friday September 08, 2023 @11:27PM (#37441986)
But you have to pull in an async runtime to do it. So library authors either have to force everyone to pull in an async runtime or write two versions of their code (sync and async).