pub fn is_main_thread() -> bool
Returns if the running thread is the “main thread”
If there is no registered main thread than this will always return true.