Skip to content

Conversation

graingert
Copy link

@graingert graingert commented Jun 1, 2025

asyncio objects in 3.8 bind the event loop eagerly and so require a legacy "get_event_loop()" loop to be in place. This means you can't do asyncio.run(x); app = App(); app.run() because asyncio.run destroys the loop in get_event_loop()

@graingert graingert force-pushed the lazily-create-asyncio-objects branch from 75d7590 to 2a7626d Compare June 1, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant