MCPcopy Index your code
hub / github.com/ether/etherpad / setTimeout

Method setTimeout

src/tests/backend/specs/SecretRotator.ts:77–83  ·  view source on GitHub ↗
(fn:Function, wait = 0)

Source from the content-addressed store, hash-verified

75
76 get now() { return this._now; }
77 setTimeout(fn:Function, wait = 0) {
78 const when = this._now + wait;
79 const id = this._nextId++;
80 this.timeouts.set(id, {id, fn, when});
81 this._fire();
82 return id;
83 }
84 clearTimeout(id:number) { this.timeouts.delete(id); }
85}
86

Callers 15

loadBroadcastJSFunction · 0.80
pad_userlist.tsFile · 0.80
setWrapsFunction · 0.80
rescheduleFunction · 0.80
handleKeyEventFunction · 0.80
bindTheEventHandlersFunction · 0.80
pad.tsFile · 0.80
setChangeCallbackTimeoutFunction · 0.80
scheduleAnimationMethod · 0.80
fileInputSubmitFunction · 0.80
resolveFunction · 0.80
jquery.tsFile · 0.80

Calls 2

_fireMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected