// Results in the following to the console: // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...) // x will occur every 1000ms // if x % 2 is equal to 1, print a, b, c (each on its own) // if x % 2 is not equal to 1, nothing will be output
A simple Observable that emits no items to the Observer and immediately emits a complete notification.
Just emits 'complete', and nothing else.
A simple Observable that only emits the complete notification. It can be used for composing with other Observables, such as in a mergeMap.
Examples
Log complete notification
Emit the number 7, then complete
Map and flatten only odd numbers to the sequence
'a'
,'b'
,'c'
See