pub fn is_main_thread() -> bool
Expand description

Whether the current thread is the main thread.