From 14b337f3cce024e2f2ef55e411fee55a50de6017 Mon Sep 17 00:00:00 2001 From: Kyle Stanley Date: Fri, 20 Sep 2019 19:04:35 -0400 Subject: [PATCH 1/2] Add whatsnew entry for loop.shutdown_default_executor() --- Doc/whatsnew/3.9.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index deaefc7539167d..682c19c7c359c5 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -116,6 +116,13 @@ Added the *indent* option to :func:`~ast.dump` which allows it to produce a multiline indented output. (Contributed by Serhiy Storchaka in :issue:`37995`.) +asyncio +------- + +Added a new couroutine :meth:`loop.shutdown_default_executor` that schedules +a shutdown for the default executor that waits on the threadpool to finish +closing. Also, :func:asyncio.run` has been updated to use the new coroutine. +(Contributed by Kyle Stanley in :issue:`34037`.) threading --------- From 6d93f0b90f6d0f92c4f3ad6af434fd592062f613 Mon Sep 17 00:00:00 2001 From: Kyle Stanley Date: Fri, 20 Sep 2019 19:18:03 -0400 Subject: [PATCH 2/2] Fix Sphinx role --- Doc/whatsnew/3.9.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 682c19c7c359c5..200d9627ca52f6 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -121,7 +121,7 @@ asyncio Added a new couroutine :meth:`loop.shutdown_default_executor` that schedules a shutdown for the default executor that waits on the threadpool to finish -closing. Also, :func:asyncio.run` has been updated to use the new coroutine. +closing. Also, :func:`asyncio.run` has been updated to use the new coroutine. (Contributed by Kyle Stanley in :issue:`34037`.) threading