dispatcherProvider

val CoroutineScope.dispatcherProvider: DispatcherProvider

Extracts the DispatcherProvider out of the CoroutineScope, or returns a new instance of DefaultDispatcherProvider.get if the coroutineContext does not have one specified.

Note that CoroutineContext is immutable, so if a new DefaultDispatcherProvider is needed, a new instance will be created each time.

See also


Extracts the DispatcherProvider out of the CoroutineContext, or returns a default from DefaultDispatcherProvider.get if the CoroutineContext does not have one specified.

Note that CoroutineContext is immutable, so if a new DefaultDispatcherProvider is needed, a new instance will be created each time.