UNPKG

toad-scheduler

Version:

In-memory Node.js and browser job scheduler

21 lines 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CronJobEngine = void 0; const SchedulerEngine_1 = require("../../common/SchedulerEngine"); class CronJobEngine extends SchedulerEngine_1.SchedulerEngine { constructor() { super(); this.jobs = []; } add(job) { this.jobs.push(job); job.start(); } stop() { for (const job of this.jobs) { job.stop(); } } } exports.CronJobEngine = CronJobEngine; //# sourceMappingURL=CronJobEngine.js.map