Package-level declarations

Contains additional method definitions specifically aimed at Kotlin callers - they are intended for easy integration or interoperability with other common Kotlin features, such as coroutines.

Functions

Link copied to clipboard
fun <T> Subscribable<T>.asFlow(): Flow<T>

Converts this Subscribable into a cold Flow.

Link copied to clipboard
fun <T> SubscribableState<T>.asStateFlow(scope: CoroutineScope): StateFlow<T>

Converts this SubscribableState into a StateFlow.

Link copied to clipboard
suspend fun <T> Single<TealiumResult<T>>.await(): T

Suspends until the Single emits its result, then returns the unwrapped success value.

Link copied to clipboard

Suspends until the Single emits its result, returning the full TealiumResult.

Link copied to clipboard
suspend fun <T> Subscribable<T>.collect(collector: FlowCollector<T>)

Collects all emissions from this Subscribable by converting it to a Flow and collecting with the given collector.