diff --git a/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/CoroutineExtensions.kt b/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/CoroutineExtensions.kt index f6952b63..f31311eb 100644 --- a/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/CoroutineExtensions.kt +++ b/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/CoroutineExtensions.kt @@ -12,6 +12,7 @@ import kotlinx.coroutines.CoroutineStart import kotlinx.coroutines.DelicateCoroutinesApi import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.GlobalScope +import kotlinx.coroutines.IO import kotlinx.coroutines.launch import kotlinx.coroutines.withContext diff --git a/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/Dispatchers.kt b/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/Dispatchers.kt deleted file mode 100644 index 1aed5fe1..00000000 --- a/core/src/commonMain/kotlin/ca/gosyer/jui/core/lang/Dispatchers.kt +++ /dev/null @@ -1,14 +0,0 @@ -/* - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. - */ - -package ca.gosyer.jui.core.lang - -import kotlinx.coroutines.CoroutineDispatcher -import kotlinx.coroutines.Dispatchers -import kotlinx.coroutines.IO - -val Dispatchers.IO: CoroutineDispatcher - get() = IO diff --git a/data/src/commonMain/kotlin/ca/gosyer/jui/data/FlowConverterFactory.kt b/data/src/commonMain/kotlin/ca/gosyer/jui/data/FlowConverterFactory.kt index 2071cbfe..d7ed0fb6 100644 --- a/data/src/commonMain/kotlin/ca/gosyer/jui/data/FlowConverterFactory.kt +++ b/data/src/commonMain/kotlin/ca/gosyer/jui/data/FlowConverterFactory.kt @@ -6,13 +6,13 @@ package ca.gosyer.jui.data -import ca.gosyer.jui.core.lang.IO import de.jensklingenberg.ktorfit.Ktorfit import de.jensklingenberg.ktorfit.converter.Converter import de.jensklingenberg.ktorfit.internal.TypeData import io.ktor.client.call.body import io.ktor.client.statement.HttpResponse import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.IO import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flowOn diff --git a/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/updates/interactor/UpdateChecker.kt b/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/updates/interactor/UpdateChecker.kt index 5525afdf..0503fe49 100644 --- a/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/updates/interactor/UpdateChecker.kt +++ b/domain/src/commonMain/kotlin/ca/gosyer/jui/domain/updates/interactor/UpdateChecker.kt @@ -6,7 +6,6 @@ package ca.gosyer.jui.domain.updates.interactor -import ca.gosyer.jui.core.lang.IO import ca.gosyer.jui.domain.build.BuildKonfig import ca.gosyer.jui.domain.server.Http import ca.gosyer.jui.domain.updates.model.GithubRelease @@ -14,6 +13,7 @@ import ca.gosyer.jui.domain.updates.service.UpdatePreferences import io.ktor.client.call.body import io.ktor.client.request.get import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.IO import kotlinx.coroutines.flow.catch import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flowOn diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/loader/TachideskPageLoader.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/loader/TachideskPageLoader.kt index 28c3d8c4..109adb05 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/loader/TachideskPageLoader.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/reader/loader/TachideskPageLoader.kt @@ -8,7 +8,6 @@ package ca.gosyer.jui.ui.reader.loader import androidx.compose.ui.unit.IntSize import ca.gosyer.jui.core.io.SYSTEM -import ca.gosyer.jui.core.lang.IO import ca.gosyer.jui.core.lang.PriorityChannel import ca.gosyer.jui.core.lang.throwIfCancellation import ca.gosyer.jui.domain.reader.service.ReaderPreferences @@ -31,6 +30,7 @@ import io.ktor.client.statement.HttpResponse import io.ktor.client.statement.bodyAsChannel import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.IO import kotlinx.coroutines.SupervisorJob import kotlinx.coroutines.cancel import kotlinx.coroutines.coroutineScope diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt index 8be51a15..440f3bf5 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/settings/SettingsBackupScreen.kt @@ -41,7 +41,6 @@ import androidx.compose.ui.unit.dp import ca.gosyer.jui.core.io.SYSTEM import ca.gosyer.jui.core.io.copyTo import ca.gosyer.jui.core.io.saveTo -import ca.gosyer.jui.core.lang.IO import ca.gosyer.jui.core.lang.throwIfCancellation import ca.gosyer.jui.domain.backup.interactor.ExportBackupFile import ca.gosyer.jui.domain.backup.interactor.ImportBackupFile @@ -77,6 +76,7 @@ import kotlinx.collections.immutable.ImmutableList import kotlinx.collections.immutable.persistentListOf import kotlinx.collections.immutable.toImmutableList import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.IO import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.SharedFlow diff --git a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/GlobalSearchViewModel.kt b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/GlobalSearchViewModel.kt index 447d8580..6ecc77b8 100644 --- a/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/GlobalSearchViewModel.kt +++ b/presentation/src/commonMain/kotlin/ca/gosyer/jui/ui/sources/globalsearch/GlobalSearchViewModel.kt @@ -7,7 +7,6 @@ package ca.gosyer.jui.ui.sources.globalsearch import androidx.compose.runtime.snapshots.SnapshotStateMap -import ca.gosyer.jui.core.lang.IO import ca.gosyer.jui.domain.manga.model.Manga import ca.gosyer.jui.domain.source.interactor.GetSearchManga import ca.gosyer.jui.domain.source.interactor.GetSourceList @@ -22,6 +21,7 @@ import kotlinx.collections.immutable.ImmutableList import kotlinx.collections.immutable.persistentListOf import kotlinx.collections.immutable.toImmutableList import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.IO import kotlinx.coroutines.async import kotlinx.coroutines.awaitAll import kotlinx.coroutines.flow.MutableStateFlow