pub fn install(options: RuntimeOptions) -> Result<()>Expand description
Configure the shared scheduler and register it as this addon’s napi
AsyncRuntime backend.
Call this from the host’s own #[napi_derive::module_init] hook, after
resolving the process configuration (environment variables, defaults) into
RuntimeOptions. The scheduler never reads the environment itself; the
host owns that resolution. configure validates and normalizes the
options, and the runtime controller’s options remain the reporting
authority for getAsyncRuntimeConfig.