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
@@ -114,9 +114,9 @@ Flows in RxJava are sequential in nature split into processing stages that may r
114
114
115
115
```java
116
116
Flowable.range(1, 10)
117
-
.observeOn(Schedulers.computation())
118
-
.map(v -> v * v)
119
-
.blockingSubscribe(System.out::println);
117
+
.observeOn(Schedulers.computation())
118
+
.map(v -> v * v)
119
+
.blockingSubscribe(System.out::println);
120
120
```
121
121
122
122
This example flow squares the numbers from 1 to 10 on the **computation** `Scheduler` and consumes the results on the "main" thread (more precisely, the caller thread of `blockingSubscribe`). However, the lambda `v -> v * v` doesn't run in parallel forthis flow; it receives the values 1 to 10 on the same computation thread one after the other.
@@ -125,11 +125,11 @@ Processing the numbers 1 to 10 in parallel is a bit more involved:
0 commit comments