summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-03 21:31:04 (GMT)
committerGitHub <noreply@github.com>2019-06-03 21:31:04 (GMT)
commit0f0a30f4da4b529e0f7df857b9f575b231b32758 (patch)
treec76047e9485f288977fb55e076b0f26eb3455ebd /Misc
parent78c7d527799dacca91b9ed67057cb996efe526b0 (diff)
downloadcpython-0f0a30f4da4b529e0f7df857b9f575b231b32758.zip
cpython-0f0a30f4da4b529e0f7df857b9f575b231b32758.tar.gz
cpython-0f0a30f4da4b529e0f7df857b9f575b231b32758.tar.bz2
bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)
Add BaseEventLoop.wait_executor_on_close attribute: true by default. loop.close() now waits for the default executor to finish by default. Set loop.wait_executor_on_close attribute to False to not wait for the executor.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-06-03-22-54-15.bpo-34037.fKNAbH.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-06-03-22-54-15.bpo-34037.fKNAbH.rst b/Misc/NEWS.d/next/Library/2019-06-03-22-54-15.bpo-34037.fKNAbH.rst
new file mode 100644
index 0000000..fb2f7a5
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-06-03-22-54-15.bpo-34037.fKNAbH.rst
@@ -0,0 +1,4 @@
+:mod:`asyncio`: ``loop.close()`` now waits for the default executor to
+finish by default. Set ``loop.wait_executor_on_close`` attribute to
+``False`` to opt-in for Python 3.7 behavior (not wait for the executor to
+finish).