7 Dec 2023
Finished:
2725. Interval Cancellation
2637. Promise Time Limit
What I learn:
- enhance a promise with time limit
Interval related:
setInterval()
- ensure that execution duration is shorter than interval frequency
- clear interval with
clearInterval(id)
Timeout related:
- clear timeout with
clearTimeout(id)
- recursive
setTimeout()
pattern approach
Top comments (0)