MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / pauseTimers

Function pauseTimers

code/one-direction-data-flow/public/app.js:7464–7474  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7462};
7463
7464var pauseTimers = function () {
7465 // Stops all currently active measurements so that they can be resumed
7466 // if we continue in a later deferred loop from the same unit of work.
7467 var fiber = currentFiber;
7468 while (fiber) {
7469 if (fiber._debugIsCurrentlyTiming) {
7470 endFiberMark(fiber, null, null);
7471 }
7472 fiber = fiber['return'];
7473 }
7474};
7475
7476var resumeTimersRecursively = function (fiber) {
7477 if (fiber['return'] !== null) {

Callers 1

stopWorkLoopTimerFunction · 0.70

Calls 1

endFiberMarkFunction · 0.70

Tested by

no test coverage detected