Function makeProgressiblePromise

  • Makes a promise a Progressible by adding the status of the running task to the context.

    Type Parameters

    • T

    Parameters

    Returns (() => Promise<Error | T>)

      • (): Promise<Error | T>
      • Returns Promise<Error | T>

    Example

     const ctx = {};
    const handler = await Promise.resolve();

    const progressible = makeProgressiblePromise(ctx, handler);
    return progressible;

Generated using TypeDoc