MCPcopy Index your code
hub / github.com/material-shell/material-shell / clearTimeoutId

Method clearTimeoutId

src/utils/async.ts:20–25  ·  view source on GitHub ↗
(timeoutId: number)

Source from the content-addressed store, hash-verified

18 }
19
20 static clearTimeoutId(timeoutId: number) {
21 if (timeoutId && this.timeoutIdList.includes(timeoutId)) {
22 GLib.source_remove(timeoutId);
23 this.timeoutIdList.splice(this.timeoutIdList.indexOf(timeoutId), 1);
24 }
25 }
26
27 static clearAllPendingTimeout() {
28 for (const timeoutId of this.timeoutIdList) {

Callers 6

addTimeoutMethod · 0.95
loadMethod · 0.80
clearSearchTimeoutMethod · 0.80
throttleFunction · 0.80
leaveCallbackMethod · 0.80

Calls 1

spliceMethod · 0.65

Tested by

no test coverage detected