A function executed on each interval. If it returns true, the interval is cleared.
An array of promises whose completion will also stop the interval.
The interval duration in milliseconds.
The interval timer, which can be cleared manually if needed.
Repeatedly invokes a callback function at a specified interval until one of two conditions is met:
true, indicating the interval should be cleared.