Skip to main content

process_id

Function process_id 

Source
pub fn process_id() -> u32
Expand description

The current process id, or 0 where there is no process (the browser).

std::process::id() panics on wasm32-unknown-unknown; it is used here only to make identifiers unique across NetGet processes, and there is one page per wasm instance.