commonMain.com.ensody.reactivestate.test.TestDispatcherConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of reactivestate-core-test-jvm Show documentation
Show all versions of reactivestate-core-test-jvm Show documentation
Easy reactive state management for Kotlin Multiplatform. No boilerplate. Compatible with Android.
package com.ensody.reactivestate.test
import com.ensody.reactivestate.CoroutineDispatcherConfig
import kotlinx.coroutines.test.TestDispatcher
/** A [CoroutineDispatcherConfig] for unit tests - dispatching everything to the given [dispatcher]. */
public class TestDispatcherConfig(public val dispatcher: TestDispatcher) : CoroutineDispatcherConfig {
override val default: TestDispatcher = dispatcher
override val main: TestDispatcher = dispatcher
override val io: TestDispatcher = dispatcher
override val unconfined: TestDispatcher = dispatcher
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy