Cotal TypeScript packages
    Preparing search index...

    Interface WorkerRun

    interface WorkerRun {
        done: Promise<WorkerRunResult>;
        cancel(reason: string): void;
        stop(reason: string): void;
    }
    Index
    done: Promise<WorkerRunResult>

    The run's answer. It rejects only for a worker that died without one.

    • Cancel the root, including effects already parked on the bridge. First reason wins.

      Parameters

      • reason: string

      Returns void

    • Ask the run to stop, with a reason.

      It is a request, not a kill: the run reads it between effects and at a fuel yield, finishes what is already in flight, and ends through its own cancellation path with the journal consistent.

      Parameters

      • reason: string

      Returns void