Function is_main_thread
pub fn is_main_thread() -> boolAvailable on non-
wasm_nothreads only.Expand description
Check if the current thread is the main thread.
ยงPanics
- If it is called before the engine bindings have been initialized.