Hacker News new | ask | show | jobs
by nbadg 3560 days 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.

1 comments

I've used this to combine async network stuff with cpu-burning operations and it worked great.