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

Why is InteractiveEventLoop an event loop? #3

Open
piannucci opened this issue May 3, 2017 · 1 comment
Open

Why is InteractiveEventLoop an event loop? #3

piannucci opened this issue May 3, 2017 · 1 comment

Comments

@piannucci
Copy link
Contributor

Pardon my ignorance, but why is InteractiveEventLoop an event loop at all, rather than a coroutine? E.g. 66a2316.

The reason I care is because I want to use a uvloop rather than an asyncio.SelectorEventLoop.

It's not a perfect proposal -- there is some error on shutdown.

@vxgmichel
Copy link
Owner

Interesting... So it cannot be a loop, it probably shouldn't be a policy either, and a coroutine is not enough cause we need proper cleanup on shutdown. Maybe it should be an asynchronous context manager.

The tricky part is the apython script, since it has to patch asyncio in a way that allows the interactive console to run regardless of the loop and the policy.

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

2 participants