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
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:
asyncwithaiohttp.ClientSession() assession:
client=berserk.Client(session=session)
... # Make api calls etc.
The text was updated successfully, but these errors were encountered:
Yeah, there probably are not a lot of cases where async is really beneficial when using the Lichess API. Though it might still be useful to handle timeouts and stuff like that nicer or when already using async for other things.
It looks like it should theoretically be possible to transparently use an async client but getting streams and types to work properly might be a bit tricky. But if anybody can find a nice solution, I'd be open to merging it.
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:The text was updated successfully, but these errors were encountered: