Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

share.js 315B

12345678910
  1. import { multicast } from './multicast';
  2. import { refCount } from './refCount';
  3. import { Subject } from '../Subject';
  4. function shareSubjectFactory() {
  5. return new Subject();
  6. }
  7. export function share() {
  8. return (source) => refCount()(multicast(shareSubjectFactory)(source));
  9. }
  10. //# sourceMappingURL=share.js.map