Coroutine: remove diffUpdateDispatcher, not used anymore
This commit is contained in:
@@ -37,10 +37,8 @@ import kotlinx.coroutines.CoroutineName
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.MainScope
|
||||
import kotlinx.coroutines.asCoroutineDispatcher
|
||||
import kotlinx.coroutines.plus
|
||||
import java.io.File
|
||||
import java.util.concurrent.Executors
|
||||
|
||||
@Module
|
||||
@ContributesTo(AppScope::class)
|
||||
@@ -99,7 +97,6 @@ object AppModule {
|
||||
io = Dispatchers.IO,
|
||||
computation = Dispatchers.Default,
|
||||
main = Dispatchers.Main,
|
||||
diffUpdateDispatcher = Executors.newSingleThreadExecutor().asCoroutineDispatcher()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -22,5 +22,4 @@ data class CoroutineDispatchers(
|
||||
val io: CoroutineDispatcher,
|
||||
val computation: CoroutineDispatcher,
|
||||
val main: CoroutineDispatcher,
|
||||
val diffUpdateDispatcher: CoroutineDispatcher,
|
||||
)
|
||||
|
||||
@@ -22,10 +22,8 @@ import io.element.android.libraries.matrix.api.tracing.TracingConfigurations
|
||||
import kotlinx.coroutines.CoroutineName
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.MainScope
|
||||
import kotlinx.coroutines.asCoroutineDispatcher
|
||||
import kotlinx.coroutines.plus
|
||||
import timber.log.Timber
|
||||
import java.util.concurrent.Executors
|
||||
|
||||
object Singleton {
|
||||
|
||||
@@ -39,6 +37,5 @@ object Singleton {
|
||||
io = Dispatchers.IO,
|
||||
computation = Dispatchers.Default,
|
||||
main = Dispatchers.Main,
|
||||
diffUpdateDispatcher = Executors.newSingleThreadExecutor().asCoroutineDispatcher(),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -37,12 +37,10 @@ fun TestScope.testCoroutineDispatchers(
|
||||
io = UnconfinedTestDispatcher(testScheduler),
|
||||
computation = UnconfinedTestDispatcher(testScheduler),
|
||||
main = UnconfinedTestDispatcher(testScheduler),
|
||||
diffUpdateDispatcher = UnconfinedTestDispatcher(testScheduler),
|
||||
)
|
||||
false -> CoroutineDispatchers(
|
||||
io = StandardTestDispatcher(testScheduler),
|
||||
computation = StandardTestDispatcher(testScheduler),
|
||||
main = StandardTestDispatcher(testScheduler),
|
||||
diffUpdateDispatcher = StandardTestDispatcher(testScheduler),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user