From 9b30efd9a2f0759fe7639e623d9ffa3ed6c07bca Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 24 May 2021 12:29:31 +0600 Subject: [PATCH] optimize imports --- .../jvmMain/kotlin/dev/inmo/micro_utils/coroutines/DoInIO.kt | 4 +--- .../dev/inmo/micro_utils/coroutines/DoWithFirstTests.kt | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/coroutines/src/jvmMain/kotlin/dev/inmo/micro_utils/coroutines/DoInIO.kt b/coroutines/src/jvmMain/kotlin/dev/inmo/micro_utils/coroutines/DoInIO.kt index c4d6fc4d2eb..f76bca82e2f 100644 --- a/coroutines/src/jvmMain/kotlin/dev/inmo/micro_utils/coroutines/DoInIO.kt +++ b/coroutines/src/jvmMain/kotlin/dev/inmo/micro_utils/coroutines/DoInIO.kt @@ -1,8 +1,6 @@ package dev.inmo.micro_utils.coroutines -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.withContext +import kotlinx.coroutines.* suspend inline fun doInIO(noinline block: suspend CoroutineScope.() -> T) = withContext( Dispatchers.IO, diff --git a/coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/DoWithFirstTests.kt b/coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/DoWithFirstTests.kt index 22e611770ac..4d9e318824c 100644 --- a/coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/DoWithFirstTests.kt +++ b/coroutines/src/jvmTest/kotlin/dev/inmo/micro_utils/coroutines/DoWithFirstTests.kt @@ -1,9 +1,8 @@ package dev.inmo.micro_utils.coroutines -import dev.inmo.micro_utils.coroutines.asDeferred -import dev.inmo.micro_utils.coroutines.launchSynchronously import kotlinx.coroutines.* -import kotlin.test.* +import kotlin.test.Test +import kotlin.test.assertEquals class DoWithFirstTests { @Test