berserk icon indicating copy to clipboard operation
berserk copied to clipboard

Support asynchronous requests (accept `aiohttp.ClientSession` in `berserk.Client`?)

Open jacksonthall22 opened this issue 1 year ago • 2 comments

I'm writing a discord bot in PyCord, where the docs suggest performing all requests asynchronously. To be able to use berserk for my bot I would love if something like this worked out of the box:

async with aiohttp.ClientSession() as session:
    client = berserk.Client(session=session)
    ...  # Make api calls etc.

jacksonthall22 avatar May 26 '23 20:05 jacksonthall22