Skip to content

Asyncio get_event_loop without current loop deprecated #2525

@pintert3

Description

@pintert3

Version: 4.4.0

Platform: 3.10, Arch Linux

Description:

Asyncio gives a DeprecationWarning because of line 535 of connection.py:

loop = asyncio.get_event_loop()

It says there's no current event loop. From my little research it's expected that this line will throw an error in python 3.11 when called without a running loop in the current thread, according to this stackoverflow answer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions