PyDocs

Nav

Networking and Interprocess Communication

loop.call_soon_threadsafe

asyncio

methodnot WASI
  • loop.call_soon_threadsafe(callback, *args, context=None)
A thread-safe variant of call_soon(). When scheduling callbacks from another thread, this function must be used, since call_soon() is not thread-safe.
Changed in 3.7
  • 3.7: The context keyword-only parameter was added. See PEP 567 for more details.
0 Examples
No examples for asyncio/loop.call_soon_threadsafe.
See Also
No see-alsos for asyncio/loop.call_soon_threadsafe
0 Notes
No notes for loop.call_soon_threadsafe