X Tutup
Skip to content

Commit f6f6ca1

Browse files
committed
Linked to examples
1 parent 08ee7bc commit f6f6ca1

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

Part 1 - Getting Started/2. Key types.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static void main(String[] args) {
7373
subject.onNext(4);
7474
}
7575
```
76-
Output
76+
[Output](/tests/java/itrx/chapter1/PublishSubjectExample.java)
7777
```
7878
2
7979
3
@@ -100,7 +100,7 @@ s.onNext(1);
100100
s.subscribe(v -> System.out.println("Late: " + v));
101101
s.onNext(2);
102102
```
103-
Output
103+
[Output](/tests/java/itrx/chapter1/ReplaySubjectExample.java)
104104
```
105105
Early:0
106106
Early:1
@@ -122,8 +122,7 @@ s.onNext(2);
122122
s.subscribe(v -> System.out.println("Late: " + v));
123123
s.onNext(3);
124124
```
125-
126-
Output
125+
[Output](/tests/java/itrx/chapter1/ReplaySubjectExample.java)
127126
```
128127
Late: 1
129128
Late: 2
@@ -144,8 +143,7 @@ s.onNext(2);
144143
s.subscribe(v -> System.out.println("Late: " + v));
145144
s.onNext(3);
146145
```
147-
148-
Output
146+
[Output](/tests/java/itrx/chapter1/ReplaySubjectExample.java)
149147
```
150148
Late: 1
151149
Late: 2
@@ -168,8 +166,7 @@ s.onNext(2);
168166
s.subscribe(v -> System.out.println("Late: " + v));
169167
s.onNext(3);
170168
```
171-
172-
output
169+
[Output](/tests/java/itrx/chapter1/BehaviorSubjectExample.java)
173170
```
174171
Late: 2
175172
Late: 3
@@ -197,8 +194,7 @@ BehaviorSubject<Integer> s = BehaviorSubject.create(0);
197194
s.subscribe(v -> System.out.println(v));
198195
s.onNext(1);
199196
```
200-
201-
Output
197+
[Output](/tests/java/itrx/chapter1/BehaviorSubjectExample.java)
202198
```
203199
0
204200
1
@@ -218,8 +214,7 @@ s.onNext(1);
218214
s.onNext(2);
219215
s.onCompleted();
220216
```
221-
222-
Output
217+
[Output](/tests/java/itrx/chapter1/AsyncSubjectExample.java)
223218
```
224219
2
225220
```
@@ -238,7 +233,7 @@ s.onCompleted();
238233
s.onNext(1);
239234
s.onNext(2);
240235
```
241-
Output
236+
[Output](/tests/java/itrx/chapter1/RxContractExample.java)
242237
```
243238
0
244239
```

0 commit comments

Comments
 (0)
X Tutup