3 ms·
But the signatures are not. If them mark the types/functions async, what happened? I must rewrite all the calls?
by mamcx 7y ago
But the signatures are not. If them mark the types/functions async, what happened?
I must rewrite all the calls?
- pas 7y agoAsync is just a syntactic sugar for Future<...>, you can poll() it manually. You can take the event loop, run it on one thread and do whatever you wish on other threads. Fearless concurrency, after all.
- bluejekyll 7y agoyou can just `.await` on any Future returned directly by APIs, if it's not marked as an async fn.