mwg API
    Preparing search index...

    Interface SpawnOptions

    interface SpawnOptions {
        signal?: AbortSignal;
        timeout?: number;
        transfer?: Transferable[];
    }
    Index
    signal?: AbortSignal

    aborting rejects the promise with the signal's reason and terminates the task's worker

    timeout?: number

    abandons the task after this many milliseconds; there is no default, because a render can legitimately take minutes

    transfer?: Transferable[]

    buffers posted to the task instead of copied: each is detached from this thread when spawn runs