MCPcopy Index your code
hub / github.com/nodejs/node / requestUpdate

Method requestUpdate

deps/v8/tools/js/web-api-helper.mjs:25–36  ·  view source on GitHub ↗
(useAnimation = false)

Source from the content-addressed store, hash-verified

23 }
24
25 requestUpdate(useAnimation = false) {
26 if (useAnimation) {
27 window.cancelAnimationFrame(this._updateTimeoutId);
28 this._updateTimeoutId =
29 window.requestAnimationFrame(this._updateCallback);
30 } else {
31 // Use timeout tasks to asynchronously update the UI without blocking.
32 clearTimeout(this._updateTimeoutId);
33 const kDelayMs = 5;
34 this._updateTimeoutId = setTimeout(this._updateCallback, kDelayMs);
35 }
36 }
37
38 forceUpdate() {
39 this._updateTimeoutId = undefined;

Callers

nothing calls this directly

Calls 2

clearTimeoutFunction · 0.50
setTimeoutFunction · 0.50

Tested by

no test coverage detected