Skip to main content

WorkerScopeInitFn

Type Alias WorkerScopeInitFn 

Source
pub type WorkerScopeInitFn = Box<dyn FnOnce(*mut JSContext, *mut JSObject) + Send>;
Expand description

Type alias for the Worker scope initialization callback.

A boxed closure that runs on the Worker thread to install APIs and stealth properties on the Worker’s global object (DEC-WK-001 native path).

@trace REQ-BRW-004 [entity:DedicatedWorkerGlobalScope] [criterion:8] @trace REQ-BRW-004 [criterion:12..17] stealth consistency

Aliased Type§

pub struct WorkerScopeInitFn(/* private fields */);