The following code emits an int after 5000ms and then another in every 5000ms later:
let evens = Observable.interval(5000)
.map(i => {
return i * 2;
});
evens.subscribe((i) => {
console.log(i);
});
Is it possible to do this, but have the first result immediately (0ms), and then wait 5000ms between subsequent results?