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: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ I've also been giving talks about Learning Rx using many of the examples listed
8
8
*[Learning RxJava For Android by Example : Part 1](https://www.youtube.com/watch?v=k3D0cWyNno4)\[[slides](https://speakerdeck.com/kaushikgopal/learning-rxjava-for-android-by-example)\] (SF Android Meetup 2015)
9
9
*[Learning Rx by Example : Part 2](https://vimeo.com/190922794)\[[slides](https://speakerdeck.com/kaushikgopal/learning-rx-by-example-2)\] (Øredev 2016)
10
10
11
-
12
11
## Examples:
13
12
14
13
1.[Background work & concurrency (using Schedulers)](https://github.com/kaushikgopal/RxJava-Android-Samples/blob/master/README.md#1-background-work--concurrency-using-schedulers)
@@ -26,6 +25,7 @@ I've also been giving talks about Learning Rx using many of the examples listed
26
25
13.[Networking with Volley](https://github.com/kaushikgopal/RxJava-Android-Samples/blob/master/README.md#13-networking-with-volley)
27
26
14.[Pagination with Rx (using Subjects)](https://github.com/kaushikgopal/RxJava-Android-Samples/blob/master/README.md#14-pagination-with-rx-using-subjects)
28
27
15.[Orchestrating Observable: make parallel network calls, then combine the result into a single data point (using flatmap & zip)](https://github.com/kaushikgopal/RxJava-Android-Samples/blob/master/README.md#15-orchestrating-observable-make-parallel-network-calls-then-combine-the-result-into-a-single-data-point-using-flatmap--zip)
28
+
16.[Simple Timeout example (using timeout)]()
29
29
30
30
## Description
31
31
@@ -215,12 +215,20 @@ The below ascii diagram expresses the intention of our next example with panache
215
215
216
216
The code for this example has already been written by one Mr.skehlet in the interwebs. Head over to [the gist](https://gist.github.com/skehlet/9418379) for the code. It's written in pure Java (6) so it's pretty comprehensible if you've understood the previous examples. I'll flush it out here again when time permits or I've run out of other compelling examples.
217
217
218
-
## Work in Progress:
218
+
### 16. Simple Timeout example (using timeout)
219
+
220
+
This is a simple example demonstrating the use of the `.timeout` operator. Button 1 will complete the task before the timeout constraint, while Button 2 will force a timeout error.
221
+
222
+
Notice how we can provide a custom Observable that indicates how to react under a timeout Exception.
223
+
224
+
## Rx 2.x
219
225
220
-
_Examples that I would like to have here, but haven't found the time yet to flush out_
226
+
All the examples here have been migrated to use RxJava 2.X.
221
227
222
-
(queue is empty)
228
+
* Have a look at [PR #83 to see the diff of changes between RxJava 1 and 2](https://github.com/kaushikgopal/RxJava-Android-Samples/pull/83/files)
229
+
*[What's different in Rx 2.x](https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0)
223
230
231
+
We use [David Karnok's Interop library](https://github.com/akarnokd/RxJava2Interop) in some cases as certain libraries like RxBindings, RxRelays, RxJava-Math etc. have not been ported yet to 2.x.
0 commit comments