summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeowmeowmeowcat <meowmeowcat1211@gmail.com>2021-08-18 06:55:04 +0800
committerGitHub <noreply@github.com>2021-08-18 00:55:04 +0200
commit3240bc62f4e0afa09964f3afc845697f0a0806b9 (patch)
tree0c64b546560bdf92b61ce7127ecfb7d5fcf0d9f0
parent599f5c8481ca258ca3a5d13eaee7d07a9103b5f2 (diff)
downloadcpython-git-3240bc62f4e0afa09964f3afc845697f0a0806b9.tar.gz
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
-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 98ec65dde8..147fb2b9bf 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.