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

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

Co-authored-by: meowmeowmeowcat <meowmeowcat1211@gmail.com>
This commit is contained in:
Miss Islington (bot) 2021-08-17 16:18:22 -07:00 committed by GitHub
parent 1bc05419b8
commit e2320c6a34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,6 +211,10 @@ Scheduling callbacks
A thread-safe variant of :meth:`call_soon`. Must be used to A thread-safe variant of :meth:`call_soon`. Must be used to
schedule callbacks *from another thread*. 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>` See the :ref:`concurrency and multithreading <asyncio-multithreading>`
section of the documentation. section of the documentation.