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