aboutsummaryrefslogtreecommitdiff
path: root/coroutine-utils/src
diff options
context:
space:
mode:
Diffstat (limited to 'coroutine-utils/src')
-rw-r--r--coroutine-utils/src/main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/coroutine-utils/src/main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt b/coroutine-utils/src/main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt
index c8edd654..61ef0b47 100644
--- a/coroutine-utils/src/main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt
+++ b/coroutine-utils/src/main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt
@@ -13,8 +13,11 @@ import kotlinx.coroutines.Dispatchers
public interface DispatcherProvider {
public fun main(): CoroutineDispatcher = Dispatchers.Main
+
public fun default(): CoroutineDispatcher = Dispatchers.Default
+
public fun io(): CoroutineDispatcher = Dispatchers.IO
+
public fun unconfined(): CoroutineDispatcher = Dispatchers.Unconfined
}