mwg API
    Preparing search index...

    Interface LoadTaskContext

    interface LoadTaskContext {
        cancelled: boolean;
        report(fraction: number): void;
    }
    Index
    cancelled: boolean

    becomes true after cancel(); a task should stop at its next safe boundary

    • reports a task-local fraction, from 0 to 1

      Parameters

      • fraction: number

      Returns void