Represents a wrapped function that returns a promise.

clear - Clears all pending executions in the execution pool.

interface IWrappedFn<T extends any = any, P extends any[] = any> {
    clear(): void;
    (...args: P): Promise<T>;
}

Type Parameters

  • T extends any = any

    The type of the result of the wrapped function.

  • P extends any[] = any

    The types of the parameters of the wrapped function.

  • Parameters

    • ...args: P

      The arguments to pass to the wrapped function.

    Returns Promise<T>

    A promise that resolves with the result of the wrapped function.

Methods

Methods