TestDispatcherProvider
@ExperimentalCoroutinesApi
Content copied to clipboard
DispatcherProvider implementation for testing, where each property defaults to a TestCoroutineDispatcher.
A default version will create a different TestCoroutineDispatcher
for each property.
Constructors
Link copied to clipboard
fun TestDispatcherProvider(default: CoroutineDispatcher = TestCoroutineDispatcher(), io: CoroutineDispatcher = TestCoroutineDispatcher(), main: CoroutineDispatcher = TestCoroutineDispatcher(), mainImmediate: CoroutineDispatcher = TestCoroutineDispatcher(), unconfined: CoroutineDispatcher = TestCoroutineDispatcher())
Content copied to clipboard
Functions
Link copied to clipboard
open override fun copy(default: CoroutineDispatcher, io: CoroutineDispatcher, main: CoroutineDispatcher, mainImmediate: CoroutineDispatcher, unconfined: CoroutineDispatcher): TestDispatcherProvider
Content copied to clipboard
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Content copied to clipboard
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Content copied to clipboard
Link copied to clipboard