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

Function computeUniqueAsyncExpiration

code/redux/public/app.js:13663–13674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13661
13662 // Creates a unique async expiration time.
13663 function computeUniqueAsyncExpiration() {
13664 var currentTime = recalculateCurrentTime();
13665 var result = computeAsyncExpiration(currentTime);
13666 if (result <= lastUniqueAsyncExpiration) {
13667 // Since we assume the current time monotonically increases, we only hit
13668 // this branch when computeUniqueAsyncExpiration is fired multiple times
13669 // within a 200ms window (or whatever the async bucket size is).
13670 result = lastUniqueAsyncExpiration + 1;
13671 }
13672 lastUniqueAsyncExpiration = result;
13673 return lastUniqueAsyncExpiration;
13674 }
13675
13676 function computeExpirationForFiber(fiber) {
13677 var expirationTime = void 0;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected