mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
17 lines
633 B
JavaScript
17 lines
633 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var Scheduler = (function () {
|
|
function Scheduler(SchedulerAction, now) {
|
|
if (now === void 0) { now = Scheduler.now; }
|
|
this.SchedulerAction = SchedulerAction;
|
|
this.now = now;
|
|
}
|
|
Scheduler.prototype.schedule = function (work, delay, state) {
|
|
if (delay === void 0) { delay = 0; }
|
|
return new this.SchedulerAction(this, work).schedule(state, delay);
|
|
};
|
|
Scheduler.now = function () { return Date.now(); };
|
|
return Scheduler;
|
|
}());
|
|
exports.Scheduler = Scheduler;
|
|
//# sourceMappingURL=Scheduler.js.map
|