publishLast.js 339 B

123456789
  1. import { AsyncSubject } from '../AsyncSubject';
  2. import { ConnectableObservable } from '../observable/ConnectableObservable';
  3. export function publishLast() {
  4. return (source) => {
  5. const subject = new AsyncSubject();
  6. return new ConnectableObservable(source, () => subject);
  7. };
  8. }
  9. //# sourceMappingURL=publishLast.js.map