Skip to content Skip to sidebar Skip to footer

Is It Necessary To Cleartimeout Inside A Recursively Invoked Timer?

Is it necessary to call clearTimeout() inside a recursively invoked function in Coffeescript? My concern is whether not calling clearTimeout() will possibly cause some sort of mem

Solution 1:

No, setTimeout schedules a one-off event. Once the event has occurred, clearTimeout with that handle is a no-op.


Post a Comment for "Is It Necessary To Cleartimeout Inside A Recursively Invoked Timer?"