source: trip-planner-front/node_modules/rxjs/_esm5/internal/operators/publishReplay.js

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

initial commit

  • Property mode set to 100644
File size: 686 bytes
Line 
1/** PURE_IMPORTS_START _ReplaySubject,_multicast PURE_IMPORTS_END */
2import { ReplaySubject } from '../ReplaySubject';
3import { multicast } from './multicast';
4export function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {
5 if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {
6 scheduler = selectorOrScheduler;
7 }
8 var selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;
9 var subject = new ReplaySubject(bufferSize, windowTime, scheduler);
10 return function (source) { return multicast(function () { return subject; }, selector)(source); };
11}
12//# sourceMappingURL=publishReplay.js.map
Note: See TracBrowser for help on using the repository browser.