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

Allow running event loop in main thread #36

Open
goodboy opened this issue Nov 3, 2017 · 0 comments
Open

Allow running event loop in main thread #36

goodboy opened this issue Nov 3, 2017 · 0 comments

Comments

@goodboy
Copy link
Member

goodboy commented Nov 3, 2017

@vodik made another good point that we should support running event loops without a background thread. The user of the loop should be able to make the decision whether or not it should be run blocking. Support for this should be carefully considered as the eventual plan is to support multi-core via asyncio loops using multiprocessing.

I propose supporting this depending on how EventLoop is run/started (say via a block kwargs).
This also drums up questions about whether separate connect() and start() methods are even needed. The original motivation was to allow for event unsubscription via unsubscribe().

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

No branches or pull requests

1 participant