collectSafely

open suspend override fun collectSafely(collector: FlowCollector<T>)

Accepts a collector and emits the latest (if available) value and any subsequent value received by this BehaviorSubject until the BehaviorSubject gets terminated.