Pular para o conteúdo principal

Interface: KernelWorkerSpawnOptions

Defined in: packages/plugin-sdk/src/kernel/workers.ts:19

Options for KernelWorkersApi.spawn.

Properties

name?

optional name?: string

Defined in: packages/plugin-sdk/src/kernel/workers.ts:28

Package-relative path of the worker entry script; must be declared in the manifest workers allowlist. The extension selects the worker kind: .js → classic, .mjs{ type: 'module' } (ADR-0018). Bundles must be self-contained (no import/importScripts — a blob URL resolves no relative imports). entry: string; /** Advisory label for diagnostics; not a security boundary.


signal?

optional signal?: AbortSignal

Defined in: packages/plugin-sdk/src/kernel/workers.ts:30

AbortSignal: aborting terminates the worker.