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 a1284e9 commit 4685401Copy full SHA for 4685401
Doc/library/asyncio-eventloop.rst
@@ -246,6 +246,9 @@ Scheduling callbacks
246
another thread, this function *must* be used, since :meth:`call_soon` is not
247
thread-safe.
248
249
+ This function is safe to be called from a reentrant context or signal handler,
250
+ however, it is not safe or fruitful to use the returned handle in such contexts.
251
+
252
Raises :exc:`RuntimeError` if called on a loop that's been closed.
253
This can happen on a secondary thread when the main application is
254
shutting down.
0 commit comments