is_main_thread

Function is_main_thread 

Source
pub fn is_main_thread() -> bool
Expand description

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.