4 ms·
I think you have to use something like the "pollster" crate, which is an async runtime that just pauses the thread until the future is ready.
by Buttons840 3y ago
I think you have to use something like the "pollster" crate, which is an async runtime that just pauses the thread until the future is ready.
- insanitybit 3y ago`block_on` should do that, as should local task sets, but that's not necessary afaik - you can just poll it normally