Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@amh4r
Copy link

@amh4r amh4r commented Nov 3, 2025

Fix the RuntimeError that occurs when an event loop already exists. This happens because you can't call asyncio.run when an event loop already exists in the thread.

This change uses ThreadPoolExecutor to instead run asyncio.run in a separate thread

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