Skip to content

warning "was never awaited" when using README example #4

Open
@sarah-github

Description

@sarah-github

Hi,
when using the example from your README, the following warning occurs:

uplink_httpx/client.py:39: RuntimeWarning: coroutine 'AsyncClient.aclose' was never awaited pass RuntimeWarning: Enable tracemalloc to get the object allocation traceback

This is concerning the line

asyncio.create_task(self._session.aclose())

in client.py, the self._session.aclose() should be awaited, but then, also the whole __del__ function has to be async which creates further needs of changes. Is this because of newer versions of uplink and httpx, since the example was created?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions