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
This is better than written N routes using the [Deferred API]({{defdocs}}/Deferred.html) route by route... but still there is one more option to help you (and your fingers) to right less code:
79
+
This is better than written N routes using the [Deferred API]({{defdocs}}/Deferred.html)... but still there is one more option to help you (and your fingers) to right less code:
Copy file name to clipboardExpand all lines: md/doc/rxjava/rxjava.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ import org.jooby.rx.Rx;
29
29
{
30
30
use(newRx());
31
31
32
-
get("/", req->Observable.from("reactive programming in jooby!"))
32
+
get("/", ()->Observable.from("reactive programming in jooby!"))
33
33
.map(Rx.rx());
34
34
}
35
35
```
@@ -52,7 +52,7 @@ Previous example is translated to:
52
52
}
53
53
```
54
54
55
-
Translation is done with the [Rx.rx()]({{defdocs}}/rx/Rx.html#rx--) route operator. If you are a <ahref="https://github.com/ReactiveX/RxJava">RxJava</a> programmer then you don't need to worry for learning a new API and semantic. The [Rx.rx()]({{defdocs}}/rx/Rx.html#rx--) route operator deal and take cares of the [Deferred API]({{defdocs}}/Deferred.html) API.
55
+
Translation is done with the [Rx.rx()]({{defdocs}}/rx/Rx.html#rx--) route operator. If you are a <ahref="https://github.com/ReactiveX/RxJava">RxJava</a> programmer then you don't need to worry for learning a new API and semantic. The [Rx.rx()]({{defdocs}}/rx/Rx.html#rx--) route operator deal and take cares of the [Deferred API]({{defdocs}}/Deferred.html).
56
56
57
57
## rx()
58
58
@@ -67,19 +67,19 @@ import org.jooby.rx.Rx;
67
67
{
68
68
use(newRx());
69
69
70
-
get("/1", req->Observable...)
70
+
get("/1", ()->Observable...)
71
71
.map(Rx.rx());
72
72
73
-
get("/2", req->Observable...)
73
+
get("/2", ()->Observable...)
74
74
.map(Rx.rx());
75
75
....
76
76
77
-
get("/N", req->Observable...)
77
+
get("/N", ()->Observable...)
78
78
.map(Rx.rx());
79
79
}
80
80
```
81
81
82
-
This is better than written N routes using the [Deferred API]({{defdocs}}/Deferred.html) route by route... but still there is one more option to help you (and your fingers) to right less code:
82
+
This is better than written N routes using the [Deferred API]({{defdocs}}/Deferred.html)... but still there is one more option to help you (and your fingers) to right less code:
0 commit comments