main_thread_id

Function main_thread_id 

pub fn main_thread_id() -> ThreadId
Available on non-wasm_nothreads only.
Expand description

Get the ThreadId of the main thread.

ยงPanics

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