- callCC<A, B>(computation): Promise<A>
Parameters
computation: ((continuation) => Promise<A>)
- (continuation): Promise<A>
Parameters
continuation: ((a) => Promise<B>)
- (a): Promise<B>
Returns Promise<B>
Returns Promise<A>
Returns Promise<A>
The transformed promise.
Transform the continuation-passing style into the promise. The parameter for
computation
iscontinuation
error handle which aborts the computation.