• Transform the continuation-passing style into the promise. The parameter for computation is continuation error handle which aborts the computation.

    Type Parameters

    • A

    • B

    Parameters

    • computation: ((continuation) => Promise<A>)

      The computation about Promise.

        • (continuation): Promise<A>
        • Parameters

          • continuation: ((a) => Promise<B>)
              • (a): Promise<B>
              • Parameters

                • a: A

                Returns Promise<B>

          Returns Promise<A>

    Returns Promise<A>

    The transformed promise.

Generated using TypeDoc