Debian Codegraph @

src/trio/from_thread.py

raw
1 """
2 This namespace represents special functions that can call back into Trio from
3 an external thread by means of a Trio Token present in Thread Local Storage
4 """
5
6 from ._threads import (
7 from_thread_check_cancelled as check_cancelled,
8 from_thread_run as run,
9 from_thread_run_sync as run_sync,
10 )
11
12 # need to use __all__ for pyright --verifytypes to see re-exports when renaming them
13 __all__ = ["check_cancelled", "run", "run_sync"]