Share¶
See also
- Official ReactiveX documentation: Share
-
Observable.
share
()¶ Share a single subscription among multple observers.
Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will unsubscribe from the source Observable.
This is an alias for Observable.publish().ref_count().