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
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -104,9 +104,10 @@ class ParallelOperationCollectionsUnitTest {
104
104
105
105
val observable =Observable.fromIterable(people)
106
106
.flatMap(
107
-
{ Observable.just(it)
108
-
.subscribeOn(Schedulers.computation())
109
-
.doOnNext { person -> person.setAdult()}
107
+
{
108
+
Observable.just(it)
109
+
.subscribeOn(Schedulers.computation())
110
+
.doOnNext { person -> person.setAdult() }
110
111
},
111
112
people.size // Uses maxConcurrency for the number of elements
112
113
)
@@ -127,9 +128,10 @@ class ParallelOperationCollectionsUnitTest {
127
128
128
129
val observable = people.toObservable()
129
130
.flatMap(
130
-
{ Observable.just(it)
131
-
.subscribeOn(Schedulers.computation())
132
-
.doOnNext { person -> person.setAdult() }
131
+
{
132
+
Observable.just(it)
133
+
.subscribeOn(Schedulers.computation())
134
+
.doOnNext { person -> person.setAdult() }
133
135
},
134
136
people.size // Uses maxConcurrency for the number of elements
0 commit comments