Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Deprecation of asyncio.get_event_loop() if there is no running event loop #28

@stfwn

Description

@stfwn

Hi! Thanks for writing and maintaining this module! 😄

The Python 3.10 docs for asyncio.get_event_loop() note:

Deprecated since version 3.10: Deprecation warning is emitted if there is no running event loop. In future Python releases, this function will be an alias of get_running_loop().

It seems @async_handler will fail with RuntimeError: no running event loop in that case. Do you think this correct?

Perhaps a solution is to effectively move the deprecated functionality into the module itself. I created a PR for this.

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