sampleTime.js 491 B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.sampleTime = void 0;
  4. var async_1 = require("../scheduler/async");
  5. var sample_1 = require("./sample");
  6. var interval_1 = require("../observable/interval");
  7. function sampleTime(period, scheduler) {
  8. if (scheduler === void 0) { scheduler = async_1.asyncScheduler; }
  9. return sample_1.sample(interval_1.interval(period, scheduler));
  10. }
  11. exports.sampleTime = sampleTime;
  12. //# sourceMappingURL=sampleTime.js.map