1 export abstract class AbstractScheduler {
3 protected abstract schedulerIntervalMs: number
5 private interval: NodeJS.Timer
8 if (!this.schedulerIntervalMs) throw new Error('Interval is not correctly set.')
10 this.interval = setInterval(() => this.execute(), this.schedulerIntervalMs)
14 clearInterval(this.interval)