4 ms·
But you can't really do vice-versa.
by heavenlyblue 6y ago
But you can't really do vice-versa.
- cjg 6y agoWell, you can use https://docs.rs/async-std/1.9.0/async_std/task/fn.spawn_blocking.html https://docs.rs/async-std/1.9.0/async_std/task/fn.spawn_bloc... But this is partly the reason why libraries might be more inclined to support async rather than blocking calls.