Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove get_event_loop() #24

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Remove get_event_loop() #24

merged 1 commit into from
Apr 18, 2024

Conversation

megatron6000
Copy link
Collaborator

@megatron6000 megatron6000 commented Apr 18, 2024

Feature Description

asyncio.get_event_loop() returns a new event loop only if called from the main thread. This causes problems in threaded applications and also this function is not recommended by python docs. They recommend to use asyncio.get_running_loop()

Changed

asyncio.get_event_loop() changed to asyncio.get_running_loop()

…om the main thread. This causes problems and also this function is not recommended by python docs. They recommend to use `asyncio.get_running_loop()`
@megatron6000 megatron6000 merged commit 7a863d9 into main Apr 18, 2024
2 checks passed
@megatron6000 megatron6000 deleted the remove-get-event-loop branch April 18, 2024 13:08
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.

None yet

2 participants