- cancellable<C, P, R>(f: ((ctx: C, ...params: P) => PromiseLike<R>), lazy?: boolean): ((...params: ContextAndParameters<C, P>) => PromiseCancellable<R>)
-
Parameters
-
f: ((ctx: C, ...params: P) => PromiseLike<R>)
-
- (ctx: C, ...params: P): PromiseLike<R>
-
Returns PromiseLike<R>
-
lazy: boolean = false
Returns ((...params: ContextAndParameters<C, P>) => PromiseCancellable<R>)
-
- (...params: ContextAndParameters<C, P>): PromiseCancellable<R>
-
Parameters
-
Rest
...params: ContextAndParameters<C, P>
Returns PromiseCancellable<R>