asObservable

@JvmName("from") @ExperimentalCoroutinesApi fun <T : Any> Flow<T>.asObservable(): Observable<T>

Converts the given flow to a cold observable. The original flow is cancelled when the observable subscriber is disposed.