I want to create an Observable-based poller that waits a certain amount of time between the previous request returning and the next request going out.
Here's the code I tried, but this sets a delay between requests going out:
import {timer} from "rxjs";
this.timer = timer(1, POLLING_INTERVAL)
.pipe(concatMap(
(_) => getData()
)).subscribe((data) => {
// do something with data
});