Skip to content

Commit

Permalink
bpo-44508: [Doc] Document failure mode for loop.call_soon_threadsafe (p…
Browse files Browse the repository at this point in the history
…ythonGH-27688)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
  • Loading branch information
dukecat0 and ambv committed Aug 17, 2021
1 parent 599f5c8 commit 3240bc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 3240bc6

Please sign in to comment.