[Python-checkins] bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)

miss-islington webhook-mailer at python.org
Tue Aug 17 19:17:33 EDT 2021


https://github.com/python/cpython/commit/bbb10761b64095425f7f8dcb3bc1f0d8bdee528a
commit: bbb10761b64095425f7f8dcb3bc1f0d8bdee528a
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-08-17T16:17:29-07:00
summary:

bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)


Co-authored-by: Łukasz Langa <lukasz at langa.pl>
(cherry picked from commit 3240bc62f4e0afa09964f3afc845697f0a0806b9)

Co-authored-by: meowmeowmeowcat <meowmeowcat1211 at gmail.com>

files:
M Doc/library/asyncio-eventloop.rst

diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index b1609f7bb77f2..eee8095bd4c0f 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.
 



More information about the Python-checkins mailing list