From 3a4e827f1abcb3d77d43dba4f7cf4d9a9c9655f7 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 1 Jun 2023 20:50:52 +0530 Subject: fix: clear violations of `RawDispatcherUse` --- .../main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coroutine-utils/src') 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 61ef0b47..bcc3b16f 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 @@ -14,6 +14,8 @@ public interface DispatcherProvider { public fun main(): CoroutineDispatcher = Dispatchers.Main + public fun mainImmediate(): CoroutineDispatcher = Dispatchers.Main.immediate + public fun default(): CoroutineDispatcher = Dispatchers.Default public fun io(): CoroutineDispatcher = Dispatchers.IO -- cgit v1.2.3