'use strict';

Object.defineProperty(exports, '__esModule', {
  value: true
});
exports.setScheduler = setScheduler;
exports.getScheduler = getScheduler;

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var _defaultScheduler = require('./default-scheduler');

var _defaultScheduler2 = _interopRequireDefault(_defaultScheduler);

var scheduler = null;

function setScheduler(customScheduler) {
  scheduler = customScheduler;
}

function getScheduler() {
  if (!scheduler) {
    scheduler = new _defaultScheduler2['default']();
  }
  return scheduler;
}