-
Notifications
You must be signed in to change notification settings - Fork 71
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
RuntimeError: This event loop is already running in python #97
Comments
If you are using nested eventloops as the solution that fix is worse than the problem, It ends up making async python code more magical. By default the eventloop runs a single task at a time and which tasks is currently running can only switch at |
Hello I received following error while running :
async def my_event_handler(e):
message=json.loads(e)
print(message)
matt.init_websocket(my_event_handler)
as a workaround I used following solution from stackoverflow:
https://stackoverflow.com/questions/46827007/runtimeerror-this-event-loop-is-already-running-in-python
The text was updated successfully, but these errors were encountered: