Coroutine: remove diffUpdateDispatcher, not used anymore
This commit is contained in:
parent
288ebab4ac
commit
c2c81d3747
4 changed files with 0 additions and 9 deletions
|
|
@ -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()
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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),
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue