Executes a function repeatedly at a specified interval and returns a disposer function that can be used to stop the execution.
The function to be executed at the specified interval.
The interval (in milliseconds) at which the function should be executed.
A disposer function that can be used to stop the execution of the function.
Executes a function repeatedly at a specified interval and returns a disposer function that can be used to stop the execution.