File tree Expand file tree Collapse file tree 4 files changed +0
-9
lines changed
app/src/main/kotlin/io/element/android/x/di
libraries/core/src/main/kotlin/io/element/android/libraries/core/coroutine
samples/minimal/src/main/kotlin/io/element/android/samples/minimal
tests/testutils/src/main/kotlin/io/element/android/tests/testutils Expand file tree Collapse file tree 4 files changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,8 @@ import kotlinx.coroutines.CoroutineName
3737import kotlinx.coroutines.CoroutineScope
3838import kotlinx.coroutines.Dispatchers
3939import kotlinx.coroutines.MainScope
40- import kotlinx.coroutines.asCoroutineDispatcher
4140import kotlinx.coroutines.plus
4241import java.io.File
43- import java.util.concurrent.Executors
4442
4543@Module
4644@ContributesTo(AppScope ::class )
@@ -99,7 +97,6 @@ object AppModule {
9997 io = Dispatchers .IO ,
10098 computation = Dispatchers .Default ,
10199 main = Dispatchers .Main ,
102- diffUpdateDispatcher = Executors .newSingleThreadExecutor().asCoroutineDispatcher()
103100 )
104101 }
105102
Original file line number Diff line number Diff line change @@ -22,5 +22,4 @@ data class CoroutineDispatchers(
2222 val io : CoroutineDispatcher ,
2323 val computation : CoroutineDispatcher ,
2424 val main : CoroutineDispatcher ,
25- val diffUpdateDispatcher : CoroutineDispatcher ,
2625)
Original file line number Diff line number Diff line change @@ -22,10 +22,8 @@ import io.element.android.libraries.matrix.api.tracing.TracingConfigurations
2222import kotlinx.coroutines.CoroutineName
2323import kotlinx.coroutines.Dispatchers
2424import kotlinx.coroutines.MainScope
25- import kotlinx.coroutines.asCoroutineDispatcher
2625import kotlinx.coroutines.plus
2726import timber.log.Timber
28- import java.util.concurrent.Executors
2927
3028object Singleton {
3129
@@ -39,6 +37,5 @@ object Singleton {
3937 io = Dispatchers .IO ,
4038 computation = Dispatchers .Default ,
4139 main = Dispatchers .Main ,
42- diffUpdateDispatcher = Executors .newSingleThreadExecutor().asCoroutineDispatcher(),
4340 )
4441}
Original file line number Diff line number Diff line change @@ -37,12 +37,10 @@ fun TestScope.testCoroutineDispatchers(
3737 io = UnconfinedTestDispatcher (testScheduler),
3838 computation = UnconfinedTestDispatcher (testScheduler),
3939 main = UnconfinedTestDispatcher (testScheduler),
40- diffUpdateDispatcher = UnconfinedTestDispatcher (testScheduler),
4140 )
4241 false -> CoroutineDispatchers (
4342 io = StandardTestDispatcher (testScheduler),
4443 computation = StandardTestDispatcher (testScheduler),
4544 main = StandardTestDispatcher (testScheduler),
46- diffUpdateDispatcher = StandardTestDispatcher (testScheduler),
4745 )
4846}
You can’t perform that action at this time.
0 commit comments