Execution needs to be cancelled

A piece of code is scheduled to execute after a designated amount of time. You realize that execution needs to be cancelled.

If used for scheduling the code execution, which of the following would prevent cancelling the same?

Options
  1. setInterval()
  2. setImmediate()
  3. process.nextTick()
  4. setTimeout()

Related Posts