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 <>
This commit is contained in:
Shantanu
2020-05-27 18:35:39 -07:00
committed by GitHub
parent d51e13ad80
commit 54c99ff75f
2 changed files with 5 additions and 0 deletions

View File

@@ -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: ...

View File

@@ -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