We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
loop.call_soon_threadsafe
1 parent 4c130c9 commit a784cdfCopy full SHA for a784cdf
Doc/library/asyncio-eventloop.rst
@@ -236,6 +236,9 @@ Scheduling callbacks
236
another thread, this function *must* be used, since :meth:`call_soon` is not
237
thread-safe.
238
239
+ This function is safe to be called from a reentrant context or signal handler,
240
+ however, it is not safe or fruitful to use the returned handle in such contexts.
241
+
242
Raises :exc:`RuntimeError` if called on a loop that's been closed.
243
This can happen on a secondary thread when the main application is
244
shutting down.
0 commit comments