DEV Community

John
John

Posted on

Day 8 - 30 Days learn Web Dev

7 Dec 2023

Finished:
2725. Interval Cancellation
2637. Promise Time Limit

What I learn:

  • enhance a promise with time limit

Interval related:

  1. setInterval()
  2. ensure that execution duration is shorter than interval frequency
  3. clear interval with clearInterval(id)

Timeout related:

  1. clear timeout with clearTimeout(id)
  2. recursive setTimeout() pattern approach

Top comments (0)