3 ms·
Reqwest lets you choose between async or not. It has a "blocking" module with a similar API, but no async functions. https://docs.rs/reqwest/0.11.2/reqwest/blo
by ogoffart 6y ago
Reqwest lets you choose between async or not. It has a "blocking" module with a similar API, but no async functions.
https://docs.rs/reqwest/0.11.2/reqwest/blocking/index.html https://docs.rs/reqwest/0.11.2/reqwest/blocking/index.html
(Maybe this uses async rust under the hood, but you don't have to care about it)
- iso8859-1 6y agoIt is not a question of whether something is blocking or not, blocking is easy. It is a question of whether you can have asynchronicity without await/async. And you can, using mio, as jstrong suggested. You'll manually poll the event loop.