3. Observe and subscribe
Observable
⟶ data stream is observed (it is
Observable)
⟶ emits three type of events
⟶ values
⟶ errors
⟶ completed
Observer (subscribe)
⟶ we can listen to the data stream
(subscribe it)
⟶ Data stream is lazy
6. Observable.first
first
Emits only the first value. Or emits only the first
value that passes some test. (source: ReactiveX
Docs) [3]
(source: ReactiveX Docs) [3]
7. Observable.map
map
Like Array.prototype.map(), it passes each
source value through a transformation function to
get corresponding output values. (source:
ReactiveX Docs) [3]
(source: ReactiveX Docs) [3]
9. Observable.zip
zip
Combine the emissions of multiple Observables
together via a specified function and emit single
items for each combination based on the results
of this function. (source: ReactiveX Docs) [1]
(source: ReactiveX Docs) [1]
10. Observable.flatMap
flatMap
Transform the items emitted by an Observable
into Observables, then flatten the emissions from
those into a single Observable. (source:
ReactiveX Docs) [1]
(source: ReactiveX Docs) [1]
12. Observable.skipWhile
skipWhile
Returns an Observable that skips all items
emitted by the source Observable as long as a
specified condition holds true, but emits all further
source items as soon as the condition becomes
false. (source: ReactiveX Docs) [3]
(source: ReactiveX Docs) [3]
18. Przydatne linki oraz źródła
ReactiveX RxJS
Interactive RxJS diagrams
The introduction to Reactive Programming you've been missing
Observable operators (ReactiveX Docs)
[1] http://reactivex.io/documentation/operators
[2] https://github.com/Reactive-Extensions/RxJS/tree/master/doc
[3] http://reactivex.io/rxjs/