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

Make the async event loop reusable. #9

Merged
merged 5 commits into from
Dec 16, 2022
Merged

Conversation

ChiahungTai
Copy link
Collaborator

You can only use an event loop in each thread.
So this modification makes the API reusable.
Also, use atexit to ensure the exit process will be executed.

@ChiahungTai ChiahungTai changed the title Make the async event loop reuse-able. Make the async event loop reusable. Dec 15, 2022
Copy link
Owner

@you-n-g you-n-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice singleton design!

@you-n-g you-n-g merged commit ce4d2ad into you-n-g:master Dec 16, 2022
@ChiahungTai ChiahungTai deleted the reuseable branch December 19, 2022 15:04
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.

2 participants