You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to keep our code simple, we should write all existing methods as async methods. Then, based on some kind of initialization parameter (ex SonarrAPI(async=True) we should run an abstract transformation on existing methods.
To oversimplify how the abstract transformation would work, async=True would replace the async functions with sync wrappers that use asyncio.run. This transformation would occur during __init__.
Is there an existing issue for this?
Expected feature
Async support.
Possible Solutions
Use
aiohttp
to add async support.In order to keep our code simple, we should write all existing methods as async methods. Then, based on some kind of initialization parameter (ex
SonarrAPI(async=True)
we should run an abstract transformation on existing methods.To oversimplify how the abstract transformation would work,
async=True
would replace the async functions with sync wrappers that useasyncio.run
. This transformation would occur during__init__
.To minimize rewriting, we should implement a system similar to how
aiohttp-requests
creates and deletes the async session.Context / Reason
Library does not have async support.
Code of Conduct
The text was updated successfully, but these errors were encountered: