Function main_thread_id

pub fn main_thread_id() -> ThreadId
Expand description

Get the ThreadId of the main thread.

§Panics

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