rxjs
Version:
Reactive Extensions for modern JavaScript
8 lines • 463 B
JavaScript
import { ReplaySubject } from '../ReplaySubject';
import { multicast } from './multicast';
export function publishReplay(bufferSize, windowTime, scheduler) {
if (bufferSize === void 0) { bufferSize = Number.POSITIVE_INFINITY; }
if (windowTime === void 0) { windowTime = Number.POSITIVE_INFINITY; }
return function (source) { return multicast(new ReplaySubject(bufferSize, windowTime, scheduler))(source); };
}
//# sourceMappingURL=publishReplay.js.map