Minimal shape of a web Worker instance as used by this host.
postMessage(message: unknown): void
Posts a structured-clonable message to the worker.
addEventListener(type: string,listener: (event: unknown) => void): void
Registers an event listener. Only used for the runtime-specific
worker-ended event named by WebWorkerHostOptions.exitEventName,
which is not part of the web Worker standard and therefore has no
handler slot.
terminate(): void
Terminates the worker.