pydactyl icon indicating copy to clipboard operation
pydactyl copied to clipboard

Add async support

Open iamkubi opened this issue 1 year ago • 0 comments

This would only be feasible if it leaves the existing behavior intact as synchronous calls. There are ways to write the code as async and have a wrapper that generates a synchronous version. This could potentially be refactored so that pyadctyl exposes get_servers() and async_get_servers() without impacting the existing behavior.

Some relevant links

https://discuss.python.org/t/how-can-async-support-dispatch-between-sync-and-async-variants-of-the-same-code/15014/14
https://gist.github.com/blink1073/969aeba85f32c285235750626f2eadd8

iamkubi avatar Sep 18 '22 01:09 iamkubi