GeezerVison is showing github.com — wip: pseudo cache is still wip · ttylinux/Android-RxJava@6d0b0f3
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: README.md +4-5Lines changed: 4 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -85,18 +85,17 @@ Note that the `Func3` function that checks for validity, kicks in only after ALL |
85 | 85 | The value of this technique becomes more apparent when you have more number of input fields in a form. Handling it otherwise with a bunch of booleans makes the code cluttered and kind of difficult to follow. But using `.combineLatest` all that logic is concentrated in a nice compact block of code (I still use booleans but that was to make the example more readable). |
86 | 86 |
|
87 | 87 |
|
| 88 | +## Work in Progress: |
| 89 | + |
| 90 | +Examples that I would like to have here, but haven't found the time yet to flush out. |
| 91 | + |
88 | 92 | ### Retrieve data first from a (pseudo) cache, then a network call - using [`.concat`](http://reactivex.io/documentation/operators/concat.html) |
89 | 93 |
|
90 | 94 | Using concat, you can retrieve information from an observable first (presumably this one is fast like retrieveing from a disk cache) and show preliminary data to a user. Subsequently, when the longer running 2nd observable is complete (say a network call), you can update the results on the interface using the latest information. |
91 | 95 |
|
92 | 96 | For the purposes of illustration i use an in-memory `List` (not an actual disk cache), but shoot out a real network call to the github api so it gives you a feel of how this can really be applied in production apps. |
93 | 97 |
|
94 | 98 |
|
95 | | -## Work in Progress: |
96 | | - |
97 | | -Examples that I would like to have here, but haven't found the time yet to flush out. |
98 | | - |
99 | | - |
100 | 99 | ### Pagination (wip) |
101 | 100 |
|
102 | 101 | a. Simple pagination |
|