3 ms·
> In such a case, would using a traditional library by spawning threads to run any blocking operation be a good stop-gap solution(until an async replacement com
by nbadg 10y ago
> In such a case, would using a traditional library by spawning threads to run any blocking operation be a good stop-gap solution(until an async replacement comes along)?
For the record, asyncio provides this ability out-of-box using the AbstractEventLoop.run_in_executor coroutine.
- greglindahl 10y agoI've used this to combine async network stuff with cpu-burning operations and it worked great.