share · learn-rxjs
https://www.learnrxjs.io/operators/multicasting/share.htmlExamples Example 1: Multiple subscribers sharing source import { timer } from 'rxjs'; import { tap, mapTo, share } from 'rxjs/operators'; const source = timer(1000); const example = source.pipe(