flowOn

fun <I, O> Exchange<I, O>.flowOn(context: CoroutineContext): Exchange<I, O>

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>

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.