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

Add asynchronous functions #153

Open
SimsumMC opened this issue Feb 19, 2022 · 1 comment
Open

Add asynchronous functions #153

SimsumMC opened this issue Feb 19, 2022 · 1 comment

Comments

@SimsumMC
Copy link

It would be great to have added the option to run things asynchronous with another method, for example, get() for synchronous and get_wait() for asynchronous programming. In the asynchronous functions, the only thing that needs to be changed is to replace requests with an asynchronous HTTP library like aiohttp.

I would love to see that because I don't have the time and I love this library but it's blocking my event loop. Keep up the great work!

@radomirbosak
Copy link
Owner

Thank you for opening this issue @SimsumMC . This looks like a very useful feature.

I suspect that a simple substitution of the request function might not be enough, since caching is performed too. I wonder how async requests do caching.
I'd like to look into this when I have a bit more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants