diff options
author | meowmeowmeowcat <meowmeowcat1211@gmail.com> | 2021-08-17 22:55:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 22:55:04 (GMT) |
commit | 3240bc62f4e0afa09964f3afc845697f0a0806b9 (patch) | |
tree | 0c64b546560bdf92b61ce7127ecfb7d5fcf0d9f0 /Doc/library | |
parent | 599f5c8481ca258ca3a5d13eaee7d07a9103b5f2 (diff) | |
download | cpython-3240bc62f4e0afa09964f3afc845697f0a0806b9.zip cpython-3240bc62f4e0afa09964f3afc845697f0a0806b9.tar.gz cpython-3240bc62f4e0afa09964f3afc845697f0a0806b9.tar.bz2 |
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
Co-authored-by: Ćukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 98ec65d..147fb2b 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. |