kotlin-flow-extensions / hu.akarnokd.kotlin.flow / ReplaySubject / collectSafely

collectSafely

@FlowPreview suspend fun collectSafely(collector: FlowCollector<T>): Unit

Accepts a collector and emits the cached values upfront and any subsequent value received by this ReplaySubject until the ReplaySubject gets terminated.