News for hackers. Stuff that matters.
Re:Exactly-Once Initialization in Asynchronous Python by itayperl on Saturday August 01, 2020 @08:13AM (#24019875)
There may be other use cases, but it can be a useful pattern for mixing async code into a non-async project. In the specific places where using async for some task makes sense, you would just spawn a thread with an event loop, then push work into the new loop from non-async code using run_coroutine_threadsafe.

There are no comments on this comment yet.