-
Notifications
You must be signed in to change notification settings - Fork 6
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
Separate Main Loop #19
Conversation
There are a few small conflicts, could you please resolve them? |
06b2387
to
676d7b7
Compare
Should be all set. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this is really exciting!
Doesn't post the game list after this change
…evilutionx-gamelist into separate-main-loop
loop = asyncio.get_event_loop() | ||
loop.create_task(background_task()) # Run background_task() as a separate task when the client is ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to call create_task()
on the current event loop, or can we just call the higher-level asyncio.create_task()
function? The asyncio documentation suggests that the event loop API calls are low-level functions that typically shouldn't need to be used by applications.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no clue
Based on: #18
Fixes: #17