flowOn
fun <I, O> Exchange<I, O>.flowOn(context: CoroutineContext): Exchange<I, O>
Content copied to clipboard
Transforms an Exchange by making it flow on a specific dispatcher. The same CoroutineContext will be used in both directions for the communicating Flows.
Parameters
context
the CoroutineContext to use for the flow.
fun <T, M> MutableSite<T, M>.flowOn(context: CoroutineContext): MutableSite<T, M>
Content copied to clipboard
Transforms a MutableSite by making it flow on a specific dispatcher. The same CoroutineContext will be used in both directions for the communicating Flows.
Parameters
context
the CoroutineContext to use for the flow.