MCPcopy Create free account
hub / github.com/microsoft/SandDance / pauseTimers

Function pauseTimers

docs/external/js/react-dom.development.js:10464–10476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10462 };
10463
10464 var pauseTimers = function () {
10465 // Stops all currently active measurements so that they can be resumed
10466 // if we continue in a later deferred loop from the same unit of work.
10467 var fiber = currentFiber;
10468
10469 while (fiber) {
10470 if (fiber._debugIsCurrentlyTiming) {
10471 endFiberMark(fiber, null, null);
10472 }
10473
10474 fiber = fiber.return;
10475 }
10476 };
10477
10478 var resumeTimersRecursively = function (fiber) {
10479 if (fiber.return !== null) {

Callers 1

stopWorkLoopTimerFunction · 0.85

Calls 1

endFiberMarkFunction · 0.85

Tested by

no test coverage detected