summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorKyle Stanley <aeros167@gmail.com>2019-09-19 12:47:22 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2019-09-19 12:47:22 (GMT)
commit9fdc64cf1266b6d5bf0503847b5c38e5edc53a14 (patch)
treeb2c07128fa5ef4fe3117604235199a618c0d10e5 /Lib/asyncio/events.py
parent3171d67a6aaf7fe88685b3a80644f0284686ef63 (diff)
downloadcpython-9fdc64cf1266b6d5bf0503847b5c38e5edc53a14.zip
cpython-9fdc64cf1266b6d5bf0503847b5c38e5edc53a14.tar.gz
cpython-9fdc64cf1266b6d5bf0503847b5c38e5edc53a14.tar.bz2
bpo-34037: Fix test_asyncio failure and add loop.shutdown_default_executor() (GH-15735)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 5fb5464..2f06c4a 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -249,6 +249,10 @@ class AbstractEventLoop:
"""Shutdown all active asynchronous generators."""
raise NotImplementedError
+ async def shutdown_default_executor(self):
+ """Schedule the shutdown of the default executor."""
+ raise NotImplementedError
+
# Methods scheduling callbacks. All these return Handles.
def _timer_handle_cancelled(self, handle):