1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

delete timer in the Map(timers) when call clearTimer (#215)

This commit is contained in:
foora 2018-06-09 17:08:23 +08:00 committed by Ryan Dahl
parent c977cba123
commit 072fcd6b0e

View file

@ -81,6 +81,7 @@ export function setInterval(
}
export function clearTimer(id: number) {
timers.delete(id);
pubInternal("timers", {
command: pb.Msg.Command.TIMER_CLEAR,
timerClearId: id