Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
blegr
· 2y ago · 0 comments
Good design dictates that you start one loop and build the whole program around it, no? The docs for asyncio.run say as much.
Comments
[–]
kodablah
2y ago
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.