Function is_main_thread
pub fn is_main_thread() -> bool
Available 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.