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

Function pauseTimers

code/higher-order-components/public/app.js:7585–7595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7583};
7584
7585var pauseTimers = function () {
7586 // Stops all currently active measurements so that they can be resumed
7587 // if we continue in a later deferred loop from the same unit of work.
7588 var fiber = currentFiber;
7589 while (fiber) {
7590 if (fiber._debugIsCurrentlyTiming) {
7591 endFiberMark(fiber, null, null);
7592 }
7593 fiber = fiber['return'];
7594 }
7595};
7596
7597var resumeTimersRecursively = function (fiber) {
7598 if (fiber['return'] !== null) {

Callers 1

stopWorkLoopTimerFunction · 0.70

Calls 1

endFiberMarkFunction · 0.70

Tested by

no test coverage detected