Skip to main content

PARK_DEADLINE_ENV

Constant PARK_DEADLINE_ENV 

Source
pub const PARK_DEADLINE_ENV: &str = "NAPI_RUNTIME_PARK_DEADLINE_MS";
Expand description

Environment variable that arms deadline-based block_on deadlock detection: milliseconds a runtime-owned park may sleep with zero runtime progress before panicking (see RuntimeOptions::park_deadline). Missing, non-numeric or 0 all mean “disabled”. The runtime does NOT read this variable itself: the embedding host’s env-resolution parses it once at addon load and hands the result to configure through RuntimeOptions::park_deadline. The name is the conventional default; hosts may resolve their own variable into the same field.