Function shareReplayUntilAllUnsubscribed

  • Similar to shareReplay(1) but unsubscribes from the source observable as soon as there are no subscribers.

    Will resubscribe to the source as soon as a new subscriber subscribes.

    Replays values as long as there are other subscribers. But does not replay potentially outdated values (subscriber count going from 0 to 1).

    Always replays error and complete signals.

    Use cases: building a time based cache that should be updated as long as there is somebody interested in updates.

    Type Parameters

    • T

    Returns OperatorFunction<T, T>

Generated using TypeDoc