Skip to content

Commit

Permalink
remove dispatcher provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dsvag committed Apr 29, 2024
1 parent f06995c commit d39c899
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import money.vivid.elmslie.core.logger.ElmslieLogConfiguration
import money.vivid.elmslie.core.logger.ElmslieLogger
import money.vivid.elmslie.core.logger.strategy.IgnoreLog
import money.vivid.elmslie.core.store.StoreListener
import money.vivid.elmslie.core.utils.DispatcherProvider
import money.vivid.elmslie.core.utils.DefaultIODispatcher
import kotlin.concurrent.Volatile

object ElmslieConfig {
Expand All @@ -16,7 +16,7 @@ object ElmslieConfig {
private set

@Volatile
var ioDispatcher: CoroutineDispatcher = DispatcherProvider.io
var ioDispatcher: CoroutineDispatcher = DefaultIODispatcher
private set

@Volatile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@ package money.vivid.elmslie.core.utils

import kotlinx.coroutines.CoroutineDispatcher

internal expect object DispatcherProvider {

val io: CoroutineDispatcher
}
internal expect val DefaultIODispatcher: CoroutineDispatcher
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package money.vivid.elmslie.core.utils

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers

internal actual object DispatcherProvider {

actual val io = Dispatchers.IO
}
internal actual val DefaultIODispatcher: CoroutineDispatcher = Dispatchers.IO
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package money.vivid.elmslie.core.utils

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO

internal actual object DispatcherProvider {

actual val io = Dispatchers.IO
}
internal actual val DefaultIODispatcher: CoroutineDispatcher = Dispatchers.IO
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package money.vivid.elmslie.core.utils

import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers

internal actual object DispatcherProvider {

actual val io = Dispatchers.Default
}
internal actual val DefaultIODispatcher: CoroutineDispatcher = Dispatchers.Default

0 comments on commit d39c899

Please sign in to comment.