I want to dynamically change the period/delay of an interval, but unfortunately I am not too familiar with Angular, so I am stuck at this part.
Here is my current code:
timeDiffs : number[] = [] <== this is a preprocessed array with the timemeasurements in milliseconds
this.interval$ = interval(this.timeDiffs[this.intervalCounter++]).subscribe(() => {
//some function calling here
this.intervalCounter++; // next index for next iteration with a different time
})