MCPcopy Create free account
hub / github.com/melonjs/melonJS / clearTimeout

Method clearTimeout

packages/melonjs/src/system/timer.ts:190–196  ·  view source on GitHub ↗

* Cancels a timeout previously established by calling setTimeout(). * @param timeoutID - ID of the timeout to be cancelled

(timeoutID: number)

Source from the content-addressed store, hash-verified

188 * @param timeoutID - ID of the timeout to be cancelled
189 */
190 clearTimeout(timeoutID: number) {
191 if (timeoutID > 0) {
192 defer(() => {
193 this.clearTimer(timeoutID);
194 }, this);
195 }
196 }
197
198 /**
199 * cancels the timed, repeating action which was previously established by a call to setInterval().

Callers

nothing calls this directly

Calls 2

clearTimerMethod · 0.95
deferFunction · 0.90

Tested by

no test coverage detected