4 ms·
Good design dictates that you start one loop and build the whole program around it, no? The docs for asyncio.run say as much.
by blegr 2y 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.
- kodablah 2y agoYes, 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.