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

Run asyncio loop in main thread #8

Closed
maxfischer2781 opened this issue Aug 10, 2018 · 3 comments
Closed

Run asyncio loop in main thread #8

maxfischer2781 opened this issue Aug 10, 2018 · 3 comments

Comments

@maxfischer2781
Copy link
Member

The asyncio subprocessing (possibly other features) requires an event loop in the main thread. See qtile/qtile#1046 (comment) and asyncio/subprocess-and-threads.

@maxfischer2781
Copy link
Member Author

This requires making the asyncio runner the one to spawn and handle all others. Runners must therefore use async def run instead of def run.

@maxfischer2781
Copy link
Member Author

Does this fix the problem in your case, @giffels?

@giffels
Copy link
Member

giffels commented Aug 13, 2018

@maxfischer2781: Thanks a lot. It fixes the problem.

Cheers,
Manuel

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