Function timedCancellable
- timedCancellable(lazy?: boolean | ((object: any) => boolean), delay?: number | ((object: any) => number), errorTimeoutConstructor?: (new () => Error)): (<T>(target: any, key: string | symbol, descriptor: T) => T)
-
Parameters
-
lazy: boolean | ((object: any) => boolean) = false
-
delay: number | ((object: any) => number) = Infinity
-
errorTimeoutConstructor: (new () => Error) = errors.ErrorContextsTimedTimeOut
-
- new (): Error
-
Returns Error
Returns (<T>(target: any, key: string | symbol, descriptor: T) => T)
-
- <T>(target: any, key: string | symbol, descriptor: T): T
-
Type Parameters
-
T extends TypedPropertyDescriptor<((...params: any[]) => PromiseLike<any>), T>
Parameters
-
target: any
-
key: string | symbol
-
descriptor: T
Returns T