pub fn register_timer_host(
env: &Env,
registration_high: u32,
registration_low: u32,
schedule: JsCallback<FnArgs<(u32, f64)>, Promise<()>>,
cancel: JsCallback<FnArgs<(u32,)>, ()>,
) -> Result<()>Expand description
Install the host timer callback backing the shared async runtime’s CurrentThread timers. Called at import by every binding-loading JS entry with paired setTimeout/clearTimeout callbacks; each importing env (main thread and workers alike) registers its own host, and every live host receives each timer.