Function handlePromise

  • Handles a promise and returns a tuple with the error and the result.

    Type Parameters

    • T

      The type of the result of the promise.

    • E = unknown

      The type of the error of the promise.

    Parameters

    • promise: Promise<unknown>

      The promise to handle.

    Returns Promise<[E, T]>

    A promise that resolves to a tuple with the error and the result.

Generated using TypeDoc