Is there a way to adjust the setTimeout delay time while it is already running? I tried using debounceTime() as an alternative, but I would like to modify the existing delay time instead of creating a new one.
In the code snippet provided, the delay is set to 10 seconds. However, I am looking for a solution where I can update the delay time dynamically when a mouse event is triggered while the setTimeout function is still running.
Your guidance on this matter would be greatly appreciated. Thank you!