Skip to content

Commit

Permalink
Add missing methods to class
Browse files Browse the repository at this point in the history
  • Loading branch information
krispya committed Jun 1, 2024
1 parent 5ad27f9 commit 7ab7ed7
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions packages/scheduler/src/class/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,6 @@ export class Scheduler {
return this;
}

createTag(id: symbol | string, options?: OptionsObject): Scheduler {
const optionsFns = createOptionsFns(options);
createTag(this, id, ...optionsFns);
return this;
}

removeTag(id: symbol | string): Scheduler {
removeTag(this, id);
return this;
}

build(): Scheduler {
build(this);
return this;
Expand All @@ -60,4 +49,23 @@ export class Scheduler {
debug(this);
return this;
}

createTag(id: symbol | string, options?: OptionsObject): Scheduler {
const optionsFns = createOptionsFns(options);
createTag(this, id, ...optionsFns);
return this;
}

removeTag(id: symbol | string): Scheduler {
removeTag(this, id);
return this;
}

hasTag(id: symbol | string): boolean {
return this.tags.has(id);
}

getRunnable(id: symbol | string): Runnable<any> | undefined {
return this.symbols.get(id);
}
}

0 comments on commit 7ab7ed7

Please sign in to comment.