share.js 407 B

1234567891011
  1. /** PURE_IMPORTS_START _multicast,_refCount,_Subject PURE_IMPORTS_END */
  2. import { multicast } from './multicast';
  3. import { refCount } from './refCount';
  4. import { Subject } from '../Subject';
  5. function shareSubjectFactory() {
  6. return new Subject();
  7. }
  8. export function share() {
  9. return function (source) { return refCount()(multicast(shareSubjectFactory)(source)); };
  10. }
  11. //# sourceMappingURL=share.js.map