mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
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.CoroutineScope
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.MainScope
|
import kotlinx.coroutines.MainScope
|
||||||
import kotlinx.coroutines.asCoroutineDispatcher
|
|
||||||
import kotlinx.coroutines.plus
|
import kotlinx.coroutines.plus
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.util.concurrent.Executors
|
|
||||||
|
|
||||||
@Module
|
@Module
|
||||||
@ContributesTo(AppScope::class)
|
@ContributesTo(AppScope::class)
|
||||||
@@ -99,7 +97,6 @@ object AppModule {
|
|||||||
io = Dispatchers.IO,
|
io = Dispatchers.IO,
|
||||||
computation = Dispatchers.Default,
|
computation = Dispatchers.Default,
|
||||||
main = Dispatchers.Main,
|
main = Dispatchers.Main,
|
||||||
diffUpdateDispatcher = Executors.newSingleThreadExecutor().asCoroutineDispatcher()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-1
@@ -22,5 +22,4 @@ data class CoroutineDispatchers(
|
|||||||
val io: CoroutineDispatcher,
|
val io: CoroutineDispatcher,
|
||||||
val computation: CoroutineDispatcher,
|
val computation: CoroutineDispatcher,
|
||||||
val main: 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.CoroutineName
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.MainScope
|
import kotlinx.coroutines.MainScope
|
||||||
import kotlinx.coroutines.asCoroutineDispatcher
|
|
||||||
import kotlinx.coroutines.plus
|
import kotlinx.coroutines.plus
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
import java.util.concurrent.Executors
|
|
||||||
|
|
||||||
object Singleton {
|
object Singleton {
|
||||||
|
|
||||||
@@ -39,6 +37,5 @@ object Singleton {
|
|||||||
io = Dispatchers.IO,
|
io = Dispatchers.IO,
|
||||||
computation = Dispatchers.Default,
|
computation = Dispatchers.Default,
|
||||||
main = Dispatchers.Main,
|
main = Dispatchers.Main,
|
||||||
diffUpdateDispatcher = Executors.newSingleThreadExecutor().asCoroutineDispatcher(),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
-2
@@ -37,12 +37,10 @@ fun TestScope.testCoroutineDispatchers(
|
|||||||
io = UnconfinedTestDispatcher(testScheduler),
|
io = UnconfinedTestDispatcher(testScheduler),
|
||||||
computation = UnconfinedTestDispatcher(testScheduler),
|
computation = UnconfinedTestDispatcher(testScheduler),
|
||||||
main = UnconfinedTestDispatcher(testScheduler),
|
main = UnconfinedTestDispatcher(testScheduler),
|
||||||
diffUpdateDispatcher = UnconfinedTestDispatcher(testScheduler),
|
|
||||||
)
|
)
|
||||||
false -> CoroutineDispatchers(
|
false -> CoroutineDispatchers(
|
||||||
io = StandardTestDispatcher(testScheduler),
|
io = StandardTestDispatcher(testScheduler),
|
||||||
computation = StandardTestDispatcher(testScheduler),
|
computation = StandardTestDispatcher(testScheduler),
|
||||||
main = StandardTestDispatcher(testScheduler),
|
main = StandardTestDispatcher(testScheduler),
|
||||||
diffUpdateDispatcher = StandardTestDispatcher(testScheduler),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user