DispatcherProvider

interface DispatcherProvider

An interface that defines the different types of dispatchers used with a coroutine. Use StandardDispatchersProvider to get an implementation of DispatcherProvider that contains the default coroutine dispatchers. By depending on an interface instead of the dispatchers directly, it becomes possible to switch out all dispatchers with test dispatchers when running tests.

Properties

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

Inheritors

Link copied to clipboard