Functions§
- future_
into_ py - get_
tokio_ runtime - initialize
- is_
main_ thread - Returns true if the current thread is the main Python thread. Compares the current thread’s native ID against the main Python thread’s native ID.
- monarch_
with_ gil - Async wrapper around
Python::attachintended for async call sites. - monarch_
with_ gil_ blocking - Blocking wrapper around
Python::with_gilfor use in synchronous contexts. - register_
python_ bindings - Initialize the runtime module and expose Python functions
- shutdown_
tokio_ runtime - signal_
safe_ block_ on - Block the current thread on a future, but make sure to check for signals originating from the Python signal handler.
- sleep_
indefinitely_ for_ unit_ tests - A test function that sleeps indefinitely in a loop. This is used for testing signal handling in signal_safe_block_on. The function will sleep forever until interrupted by a signal.