aboutsummaryrefslogtreecommitdiff
path: root/coroutine-utils/src
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-06-01 20:50:52 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-06-04 01:52:57 +0530
commit3a4e827f1abcb3d77d43dba4f7cf4d9a9c9655f7 (patch)
tree96b314ed0cb1f62722e6c02336c28c0819673916 /coroutine-utils/src
parent496f421f170f6d437cdef63dc4644bf6b423a547 (diff)
fix: clear violations of `RawDispatcherUse`
Diffstat (limited to 'coroutine-utils/src')
-rw-r--r--coroutine-utils/src/main/kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt2
1 files changed, 2 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 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