You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core-kotlin-modules/core-kotlin-collections-6/src/test/kotlin/com/baeldung/parallelOperationsCollections/ParallelOperationCollectionsUnitTest.kt
-17Lines changed: 0 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -142,23 +142,6 @@ class ParallelOperationCollectionsUnitTest {
142
142
observable.assertResultsTrue()
143
143
}
144
144
145
-
@Test
146
-
fun`using RxKotlin but still use 1 thread`() { // ObservableKt.kt.class from io.reactivex.rxkotlin
147
-
logger.info("Using RxKotlin 1 thread")
148
-
val startTime =Instant.now()
149
-
150
-
val observable = people.toObservable()
151
-
.subscribeOn(Schedulers.io())
152
-
.flatMap { Observable.just(it) } // Without using the maxConcurrency parameter, so it only uses 1 thread.
153
-
.doOnNext { person -> person.setAdult() }
154
-
.filter { it.age >15 }.toList()
155
-
.map { it.sortedBy { person -> person.age } }.blockingGet()
0 commit comments