DispatcherProvider

Provides access to the different types of CoroutineDispatchers, defaulting to the regular kotlin Dispatcher implementation.

Useful to inject TestCoroutineDispatcher implementations in test scenarios. See https://craigrussell.io/2021/12/testing-android-coroutines-using-runtest/#injecting-coroutine-dispatchers

Inheritors

Properties

Link copied to clipboard
open val default: CoroutineDispatcher
Link copied to clipboard
open val io: CoroutineDispatcher
Link copied to clipboard
open val main: CoroutineDispatcher
Link copied to clipboard
open val unconfined: CoroutineDispatcher