summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-08-17 23:17:29 (GMT)
committerGitHub <noreply@github.com>2021-08-17 23:17:29 (GMT)
commitbbb10761b64095425f7f8dcb3bc1f0d8bdee528a (patch)
treea321ec0c489e6164fd2ee36684ea40aeddb18386 /Doc
parentf20f061cfaee639875a7a72926f3ad9cc4494ff9 (diff)
downloadcpython-bbb10761b64095425f7f8dcb3bc1f0d8bdee528a.zip
cpython-bbb10761b64095425f7f8dcb3bc1f0d8bdee528a.tar.gz
cpython-bbb10761b64095425f7f8dcb3bc1f0d8bdee528a.tar.bz2
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl> (cherry picked from commit 3240bc62f4e0afa09964f3afc845697f0a0806b9) Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/asyncio-eventloop.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index b1609f7..eee8095 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -216,6 +216,10 @@ Scheduling callbacks
A thread-safe variant of :meth:`call_soon`. Must be used to
schedule callbacks *from another thread*.
+ Raises :exc:`RuntimeError` if called on a loop that's been closed.
+ This can happen on a secondary thread when the main application is
+ shutting down.
+
See the :ref:`concurrency and multithreading <asyncio-multithreading>`
section of the documentation.