1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -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