MCPcopy
hub / github.com/jabbany/CommentCoreLibrary / clearTimeout

Method clearTimeout

src/scripting/api/Runtime/Timer.ts:119–127  ·  view source on GitHub ↗
(id:number)

Source from the content-addressed store, hash-verified

117 }
118
119 public clearTimeout(id:number):void {
120 for (var i = 0; i < this._timers.length; i++) {
121 if (this._timers[i].type === 'timeout' &&
122 this._timers[i].key === id) {
123 this._timers.splice(i, 1);
124 return;
125 }
126 }
127 }
128
129 public clearAll(type:String = 'all'):void {
130 if (type === 'timer') {

Callers 1

clearTimeoutFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected