Skip to content

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

@jacksonthall22

Description

@jacksonthall22

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions