Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.pubsub/Observable/share

share

open fun share(): Observable<T>

Returns an Observable that will share a single connection to the source Observable (this).

This Observable will not subscribe to the source until the first observer subscribes, and no emissions are replayed to late-subscribing observers.


open fun share(replay: Int): Observable<T>

Returns an Observable that will share a single connection to the source Observable (this).

This Observable will not subscribe to the source until the first observer subscribes. Emissions are replayed to late-subscribing observers according to the given replay

Parameters

replay

The number of emissions to cache and replay to late-subscribing observers

Generated by Dokka
(c) Tealium 2026