MCPcopy Index your code
hub / github.com/microsoft/SandDance / markRootFinishedAtTime

Function markRootFinishedAtTime

docs/external/js/react-dom.development.js:24348–24372  ·  view source on GitHub ↗
(root, finishedExpirationTime, remainingExpirationTime)

Source from the content-addressed store, hash-verified

24346 }
24347 }
24348 function markRootFinishedAtTime(root, finishedExpirationTime, remainingExpirationTime) {
24349 // Update the range of pending times
24350 root.firstPendingTime = remainingExpirationTime; // Update the range of suspended times. Treat everything higher priority or
24351 // equal to this update as unsuspended.
24352
24353 if (finishedExpirationTime <= root.lastSuspendedTime) {
24354 // The entire suspended range is now unsuspended.
24355 root.firstSuspendedTime = root.lastSuspendedTime = root.nextKnownPendingLevel = NoWork;
24356 } else if (finishedExpirationTime <= root.firstSuspendedTime) {
24357 // Part of the suspended range is now unsuspended. Narrow the range to
24358 // include everything between the unsuspended time (non-inclusive) and the
24359 // last suspended time.
24360 root.firstSuspendedTime = finishedExpirationTime - 1;
24361 }
24362
24363 if (finishedExpirationTime <= root.lastPingedTime) {
24364 // Clear the pinged time
24365 root.lastPingedTime = NoWork;
24366 }
24367
24368 if (finishedExpirationTime <= root.lastExpiredTime) {
24369 // Clear the expired time
24370 root.lastExpiredTime = NoWork;
24371 }
24372 }
24373 function markRootExpiredAtTime(root, expirationTime) {
24374 var lastExpiredTime = root.lastExpiredTime;
24375

Callers 1

commitRootImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected