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:
584 bytes
|
Line | |
---|
1 | import { ReplaySubject } from '../ReplaySubject';
|
---|
2 | import { multicast } from './multicast';
|
---|
3 | export function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {
|
---|
4 | if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {
|
---|
5 | scheduler = selectorOrScheduler;
|
---|
6 | }
|
---|
7 | const selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;
|
---|
8 | const subject = new ReplaySubject(bufferSize, windowTime, scheduler);
|
---|
9 | return (source) => multicast(() => subject, selector)(source);
|
---|
10 | }
|
---|
11 | //# sourceMappingURL=publishReplay.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.