Browse Source
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (GH-27688)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
pull/27806/head
meowmeowmeowcat
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
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. |
|
|
|
|
|
|
|
|