Given an Observable, subscribes to it immediately, and saves the Subscription instance.
The Observable to be used for subscription.
Indicates whether the Stream is active or not.
i.e.: Whether the provided Observable is subscribed or not.
The current Subscription instance.
It can be undefined
if there's no active Subscription.
Unsubscribes and then immediately subscribes again, also, replaces the subscription instance with the new Subscription instance.
Subscription instance returned by subscribing to the provided Observable {@link Observable.subscribe}.
Unsubscribes from current subscription instance using {@link Subscription.unsubscribe}.
It also deletes the Subscription instance.
A wrapper on RxJS Subscription.
Stream is a simple construct that adds the ability to re-subscribe to the provided Observable. Given an Observable, it immediately gets subscribed, and the subscription instance is saved as Stream's property. The Stream keeps the reference to the provided Observable, and uses it for re-subscription when asked.
See https://docs.activejs.dev/utilities/stream for more details.