MCPcopy
hub / github.com/palantir/blueprint / setTimeout

Function setTimeout

packages/core/src/common/abstractComponent.ts:54–58  ·  view source on GitHub ↗

* Set a timeout and remember its ID. * All stored timeouts will be cleared when component unmounts. * @returns a "cancel" function that will clear timeout when invoked.

(callback: () => void, timeout?: number)

Source from the content-addressed store, hash-verified

52 * @returns a "cancel" function that will clear timeout when invoked.
53 */
54 public setTimeout(callback: () => void, timeout?: number) {
55 const handle = window.setTimeout(callback, timeout);
56 this.timeoutIds.push(handle);
57 return () => window.clearTimeout(handle);
58 }
59
60 /**
61 * Clear all known timeouts.

Callers 15

buttonTestSuiteFunction · 0.50
hotkeysTests.tsxFile · 0.50
renderPopoverFunction · 0.50
resizeFunction · 0.50
tagInputTests.tsxFile · 0.50
overlayTests.tsxFile · 0.50
assertFocusFunction · 0.50
tabsTests.tsxFile · 0.50
overflowListFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected