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

Asyncio support #500

Open
hvanoch opened this issue Jan 9, 2023 · 1 comment
Open

Asyncio support #500

hvanoch opened this issue Jan 9, 2023 · 1 comment

Comments

@hvanoch
Copy link

hvanoch commented Jan 9, 2023

Is there anyway to use this library with asyncio?

@belono
Copy link
Contributor

belono commented Jan 19, 2023

Hi @hvanoch .

This library is not async at the moment.

Obviously, you can wrap the commands into a concurrent.futures thread executor and then call loop.run_in_executor() but I think you mean run natively in an asyncio loop to await for the commands to finish, which in my opinion would be very interesting and should be possible.

Maybe this topic should be moved to Discussions, where we can expose different approaches on how to do this. Also the possible pros and cons, incompatibilities, etc...

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