Function timedCancellable
- timedCancellable<C, C_, P, R>(f: ((ctx: C_, ...params: P) => PromiseLike<R>), lazy?: boolean, delay?: number, errorTimeoutConstructor?: (new () => Error)): ((...params: ContextAndParameters<C, P>) => PromiseCancellable<R>)
-
Parameters
-
f: ((ctx: C_, ...params: P) => PromiseLike<R>)
-
- (ctx: C_, ...params: P): PromiseLike<R>
-
Parameters
-
ctx: C_
-
Rest
...params: P
Returns PromiseLike<R>
-
lazy: boolean = false
-
delay: number = Infinity
-
errorTimeoutConstructor: (new () => Error) = errors.ErrorContextsTimedTimeOut
-
- new (): Error
-
Returns Error
Returns ((...params: ContextAndParameters<C, P>) => PromiseCancellable<R>)
-
- (...params: ContextAndParameters<C, P>): PromiseCancellable<R>
-
Parameters
-
Rest
...params: ContextAndParameters<C, P>
Returns PromiseCancellable<R>