fix(core): update
This commit is contained in:
		| @@ -9,7 +9,7 @@ export class TaskDebounced<T = unknown> extends Task { | |||||||
|   constructor(optionsArg: { |   constructor(optionsArg: { | ||||||
|     name: string; |     name: string; | ||||||
|     taskFunction: ITaskFunction; |     taskFunction: ITaskFunction; | ||||||
|     type: 'atMostEvery' | 'afterQuietFor' |     debounceTimeInMillis: number; | ||||||
|   }) { |   }) { | ||||||
|     super({ |     super({ | ||||||
|       name: optionsArg.name, |       name: optionsArg.name, | ||||||
| @@ -18,7 +18,7 @@ export class TaskDebounced<T = unknown> extends Task { | |||||||
|       } |       } | ||||||
|     }); |     }); | ||||||
|     this.taskFunction = optionsArg.taskFunction; |     this.taskFunction = optionsArg.taskFunction; | ||||||
|     this._observableIntake.observable.pipe(plugins.smartrx.rxjs.ops.debounceTime(2000)).subscribe((x) => { |     this._observableIntake.observable.pipe(plugins.smartrx.rxjs.ops.debounceTime(optionsArg.debounceTimeInMillis)).subscribe((x) => { | ||||||
|       this.taskFunction(x); |       this.taskFunction(x); | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user