timerjobs
Version:
TimerJobs is a simple way to create recurring tasks that can react to events.
33 lines • 804 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Options = void 0;
const helpers_1 = require("./helpers");
const noop = () => { };
const defaultOptions = {
blocking: true,
autoStart: false,
countdown: 1,
delimiter: '::',
emitLevel: 1,
emitter: null,
ignoreErrors: false,
immediate: false,
interval: 3000,
infinite: true,
namespace: '',
reference: 'timer',
stopOn: null,
stopCallback: noop,
startOn: null,
startCallback: noop,
restartOn: null,
restartCallback: noop,
context: null,
};
class Options {
constructor(options = {}) {
helpers_1.merge(this, Object.assign(Object.assign({}, defaultOptions), options));
}
}
exports.Options = Options;
//# sourceMappingURL=options.js.map