From d04e1fa368115718a308c123a3b9c18e6626f5f1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 29 Apr 2023 01:28:41 +0000 Subject: fix(deps): update dependency com.facebook:ktfmt to v0.44 (#2490) * fix(deps): update dependency com.facebook:ktfmt to v0.44 * chore: reformat with ktfmt 0.44 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya --- coroutine-utils/build.gradle.kts | 4 +--- .../kotlin/app/passwordstore/util/coroutines/DispatcherProvider.kt | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'coroutine-utils') diff --git a/coroutine-utils/build.gradle.kts b/coroutine-utils/build.gradle.kts index a7074506..65ed2d9d 100644 --- a/coroutine-utils/build.gradle.kts +++ b/coroutine-utils/build.gradle.kts @@ -2,9 +2,7 @@ * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. * SPDX-License-Identifier: GPL-3.0-only */ -plugins { - id("com.github.android-password-store.kotlin-jvm-library") -} +plugins { id("com.github.android-password-store.kotlin-jvm-library") } dependencies { implementation(libs.kotlin.coroutines.core) 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 } -- cgit v1.2.3