SheetXL - v1.0.2
    Preparing search index...

    One call made by IFormulaContext.defer, as its executor receives it.

    Settle each call itself, never by its position in a response. An executor that returns a promise which rejects fails every call it has not settled.

    interface DeferredCall<T = any> {
        cancelled: boolean;
        payload: unknown;
        onCancel(fn: () => void): void;
        reject(error: unknown): void;
        resolve(
            value: T,
            options?: IFormulaContext.DeferredCall.ResolveOptions,
        ): void;
    }

    Type Parameters

    • T = any
    Index
    cancelled: boolean

    Whether the result is no longer wanted. Only an executor that holds calls to settle later needs it; a result for a cancelled call is dropped.

    payload: unknown

    What the function passed to defer.

    • Runs fn when the result is no longer wanted.

      Parameters

      • fn: () => void

      Returns void

    • Settles the call with an error: a FormulaError as itself, anything else as #VALUE!.

      Parameters

      • error: unknown

      Returns void