fix(core): update
This commit is contained in:
parent
70bb5b3f5d
commit
ea8ef61c40
@ -9,7 +9,7 @@ export class TaskDebounced<T = unknown> extends Task {
|
||||
constructor(optionsArg: {
|
||||
name: string;
|
||||
taskFunction: ITaskFunction;
|
||||
type: 'atMostEvery' | 'afterQuietFor'
|
||||
debounceTimeInMillis: number;
|
||||
}) {
|
||||
super({
|
||||
name: optionsArg.name,
|
||||
@ -18,7 +18,7 @@ export class TaskDebounced<T = unknown> extends Task {
|
||||
}
|
||||
});
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user