Skip to content

Implement shutdown_default_executor() #349

Closed
@agronholm

Description

@agronholm
  • uvloop version: 0.14.0
  • Python version: 3.9.0b1
  • Platform: Linux
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: yes
  • Does uvloop behave differently from vanilla asyncio? How?: yes – vanilla asyncio implements this method

Python 3.9 added a new mandatory method to the AbstractEventLoop interface, named shutdown_default_executor(). This method is crucial for asyncio.run() to work. If it's absent, asyncio.run() will fail with a NotImplementedError when performing the shutdown cleanup.

Related CPython issue: https://bugs.python.org/issue34037

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