asObservable
fun <T> ReceiveChannel<T>.asObservable(
context: CoroutineContext
): Observable<T>Converts a stream of elements received from the channel to the hot reactive observable.
Every subscriber receives values from this channel in fan-out fashion. If the are multiple subscribers, they’ll receive values in round-robin way.
Parameters
context - – the coroutine context from which the resulting observable is going to be signalled