Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 935 Bytes

File metadata and controls

28 lines (14 loc) · 935 Bytes

{% if book.isPdf %}

share

{% else %}

{% endif %}

Returns an observable sequence that shares a single subscription to the underlying sequence.

This operator is a specialization of publish which creates a subscription when the number of observers goes from zero to one, then shares that subscription with all subsequent observers until the number of observers returns to zero, at which point the subscription is disposed.

Returns

(Observable): An observable sequence that contains the elements of a sequence produced by multicasting the source sequence.

Example

Without share

With share