Function deno_runtime::web_worker::run_web_worker
source · pub fn run_web_worker(
worker: WebWorker,
specifier: ModuleSpecifier,
maybe_source_code: Option<String>,
preload_module_cb: Arc<WorkerEventCb>,
pre_execute_module_cb: Arc<WorkerEventCb>,
format_js_error_fn: Option<Arc<FormatJsErrorFn>>
) -> Result<(), AnyError>
Expand description
This function should be called from a thread dedicated to this worker.