Hacker News new | ask | show | jobs
by blegr 767 days ago
Good design dictates that you start one loop and build the whole program around it, no? The docs for asyncio.run say as much.
1 comments

Yes, that is good design and the event loop should basically be shared process-wide (asyncio objects are usually not thread safe and cannot be shared across event loops). Temporal only does custom event loops in isolated workflows.