UNPKG

toad-scheduler

Version:

In-memory Node.js and browser job scheduler

24 lines 812 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Job = exports.JobStatus = void 0; var JobStatus; (function (JobStatus) { JobStatus["RUNNING"] = "running"; JobStatus["STOPPED"] = "stopped"; })(JobStatus || (exports.JobStatus = JobStatus = {})); class Job { constructor(id) { this.id = id; } /** * Applies a scheduler-wide `unref` default to this job. Only takes effect * when the job was constructed without an explicit `unref` option — a * per-job setting always wins over the scheduler default. */ // eslint-disable-next-line @typescript-eslint/no-unused-vars applyUnrefDefault(unref) { // no-op by default so that custom Job subclasses keep working } } exports.Job = Job; //# sourceMappingURL=Job.js.map