summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-09-28 17:39:42 (GMT)
committerGitHub <noreply@github.com>2022-09-28 17:39:42 (GMT)
commit575a253b5c203e8d2ebfd239ed5a613179f8984f (patch)
tree2bf2c6833ef3d08ae73cf410bacf24703f1f9ae1 /Misc
parent9a404b173e57ce171a867cfc3776cdf88d6c553f (diff)
downloadcpython-575a253b5c203e8d2ebfd239ed5a613179f8984f.zip
cpython-575a253b5c203e8d2ebfd239ed5a613179f8984f.tar.gz
cpython-575a253b5c203e8d2ebfd239ed5a613179f8984f.tar.bz2
GH-82448: Add thread timeout for loop.shutdown_default_executor (#97561)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-09-25-00-37-51.bpo-38267.X9Jb5V.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-09-25-00-37-51.bpo-38267.X9Jb5V.rst b/Misc/NEWS.d/next/Library/2019-09-25-00-37-51.bpo-38267.X9Jb5V.rst
new file mode 100644
index 0000000..b842fdc
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-09-25-00-37-51.bpo-38267.X9Jb5V.rst
@@ -0,0 +1,3 @@
+Add *timeout* parameter to :meth:`asyncio.loop.shutdown_default_executor`.
+The default value is ``None``, which means the executor will be given an unlimited amount of time.
+When called from :class:`asyncio.Runner` or :func:`asyncio.run`, the default timeout is 5 minutes.