method IWorkerHost.spawn
IWorkerHost.spawn(specifier: string): IWorkerHandle

Spawns a module worker.

Parameters

specifier: string

Module specifier (URL string) of the worker module

Return Type

A normalized handle to the worker

Usage

import { type IWorkerHost } from "common/src/index.ts";