The following code emits intafter 5000ms, and then another in each 5000mslater:
let evens = Observable.interval(5000)
.map(i => {
return i * 2;
});
evens.subscribe((i) => {
console.log(i);
});
Is it possible to do this, but immediately get the first result ( 0ms), and then wait 5000mbetween subsequent results?
source
share