hugoWebsite/node_modules/rxjs/dist/esm/internal/operators/publishLast.js

9 lines
339 B
JavaScript
Raw Normal View History

2022-10-29 00:20:35 +02:00
import { AsyncSubject } from '../AsyncSubject';
import { ConnectableObservable } from '../observable/ConnectableObservable';
export function publishLast() {
return (source) => {
const subject = new AsyncSubject();
return new ConnectableObservable(source, () => subject);
};
}
//# sourceMappingURL=publishLast.js.map