From 54c99ff75f0d24b5bc09907cbd4b3fed7cc5f9a2 Mon Sep 17 00:00:00 2001 From: Shantanu Date: Wed, 27 May 2020 18:35:39 -0700 Subject: [PATCH] asyncio: add shutdown_default_executor (#4115) There are a couple other py39 changes to be made in asyncio, but I'm trying to avoid merge issues with whitelists / Windows for now. Co-authored-by: hauntsaninja <> --- stdlib/3/asyncio/base_events.pyi | 2 ++ stdlib/3/asyncio/events.pyi | 3 +++ 2 files changed, 5 insertions(+) diff --git a/stdlib/3/asyncio/base_events.pyi b/stdlib/3/asyncio/base_events.pyi index db62aebe8..3705a1124 100644 --- a/stdlib/3/asyncio/base_events.pyi +++ b/stdlib/3/asyncio/base_events.pyi @@ -218,3 +218,5 @@ class BaseEventLoop(AbstractEventLoop, metaclass=ABCMeta): # Debug flag management. def get_debug(self) -> bool: ... def set_debug(self, enabled: bool) -> None: ... + if sys.version_info >= (3, 9): + async def shutdown_default_executor(self) -> None: ... diff --git a/stdlib/3/asyncio/events.pyi b/stdlib/3/asyncio/events.pyi index a5815c8bd..d3c811949 100644 --- a/stdlib/3/asyncio/events.pyi +++ b/stdlib/3/asyncio/events.pyi @@ -293,6 +293,9 @@ class AbstractEventLoop(metaclass=ABCMeta): def get_debug(self) -> bool: ... @abstractmethod def set_debug(self, enabled: bool) -> None: ... + if sys.version_info >= (3, 9): + @abstractmethod + async def shutdown_default_executor(self) -> None: ... class AbstractEventLoopPolicy(metaclass=ABCMeta): @abstractmethod