Hacker News new | past | comments | ask | show | jobs | submit login

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.



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).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: