DispatcherProvider

Abstraction over the standard CoroutineDispatcher set to allow dispatcher injection in tests.

Inheritors

Functions

Link copied to clipboard
open fun default(): ERROR CLASS: Symbol not found for CoroutineDispatcher

Returns the Dispatchers.Default dispatcher for CPU-intensive work.

Link copied to clipboard
open fun io(): ERROR CLASS: Symbol not found for CoroutineDispatcher

Returns the Dispatchers.IO dispatcher for I/O-bound work.

Link copied to clipboard
open fun main(): ERROR CLASS: Symbol not found for CoroutineDispatcher

Returns the Dispatchers.Main dispatcher for UI-thread work.

Link copied to clipboard
open fun unconfined(): ERROR CLASS: Symbol not found for CoroutineDispatcher

Returns the Dispatchers.Unconfined dispatcher that is not confined to any thread.