Zhihao CHEN
| Star | Fork | |
|---|---|---|
| RxAndroid | 6,305 | 1,015 |
| RxJava | 12,927 | 2,071 |
| RxJS | 9,084 | 963 |
| RxSwift | 4,148 | 468 |
| ... |
Asynchronous (event stream)
(Ongoing events) ordered in time
DOM events, Promise, values and etc...
Observable
Observer
Operator
A representation of any set of values over any amount of time. This the most basic building block of RxJS.
check code "observable"
Observers are just objects with three callbacks, one for each type of notification that an Observable may deliver.
const observer = { next: x => console.log('Observer got a next value: ' + x), error: err => console.error('Observer got an error: ' + err), complete: () => console.log('Observer got a complete notification'), }; observable.subscribe(observer);
Code Demos