is_main_thread

Function is_main_thread 

pub fn is_main_thread() -> bool
Expand description

Check if the current thread is the main thread.

ยงPanics

  • If it is called before the engine bindings have been initialized.