All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.ensody.reactivestate.test.TestDispatcherConfig.kt Maven / Gradle / Ivy

Go to download

Easy reactive state management for Kotlin Multiplatform. No boilerplate. Compatible with Android.

There is a newer version: 5.11.0
Show newest version
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