source: trip-planner-front/node_modules/rxjs/internal/operators/publishReplay.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 755 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var ReplaySubject_1 = require("../ReplaySubject");
4var multicast_1 = require("./multicast");
5function 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}
13exports.publishReplay = publishReplay;
14//# sourceMappingURL=publishReplay.js.map
Note: See TracBrowser for help on using the repository browser.