Skip to content

Use uvloop.run() instead of uvloop.install() #1024

@zhcn000000

Description

@zhcn000000

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

The EventLoopPolicy and install methods of uvloop have been deprecated, and uvloop.run is now used instead. Is it possible to add uvloop as the backend for async by simply modifying the run method of asyncio to use the uvloop.run method, while keeping the rest of the code consistent with asyncio

Use case

just like

anyio.run(backend="uvloop")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions