Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

publishReplay.js 755B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var ReplaySubject_1 = require("../ReplaySubject");
  4. var multicast_1 = require("./multicast");
  5. function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {
  6. if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {
  7. scheduler = selectorOrScheduler;
  8. }
  9. var selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;
  10. var subject = new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler);
  11. return function (source) { return multicast_1.multicast(function () { return subject; }, selector)(source); };
  12. }
  13. exports.publishReplay = publishReplay;
  14. //# sourceMappingURL=publishReplay.js.map