This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/rxjs/_esm2015/internal/operators/publishReplay.js

11 lines
584 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
import { ReplaySubject } from '../ReplaySubject';
import { multicast } from './multicast';
export function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {
if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {
scheduler = selectorOrScheduler;
}
const selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;
const subject = new ReplaySubject(bufferSize, windowTime, scheduler);
return (source) => multicast(() => subject, selector)(source);
}
//# sourceMappingURL=publishReplay.js.map