Documentation
    Preparing search index...

    Interface MockWorker

    One allocated worker.

    const worker = service.mock.state().workers.get('w-0123abcd');
    worker?.state === 'live';
    interface MockWorker {
        queued: number;
        reason?: MockWorkerCloseReason;
        source: string;
        state: "closed" | "live";
        timers: Set<() => void>;
        windowId: string;
        workerId: string;
    }
    Index

    Properties

    queued: number

    Messages accepted but not yet processed.

    Close reason once closed.

    source: string

    Program source as supplied.

    state: "closed" | "live"

    Lifecycle state.

    timers: Set<() => void>

    Pending scheduler cancels.

    windowId: string

    Owning window.

    workerId: string

    Opaque id.