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

Function deferredUpdates

code/new-context-api/public/app.js:12890–12899  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

12888 }
12889
12890 function deferredUpdates(fn) {
12891 var previousExpirationContext = expirationContext;
12892 var currentTime = recalculateCurrentTime();
12893 expirationContext = computeAsyncExpiration(currentTime);
12894 try {
12895 return fn();
12896 } finally {
12897 expirationContext = previousExpirationContext;
12898 }
12899 }
12900 function syncUpdates(fn, a, b, c, d) {
12901 var previousExpirationContext = expirationContext;
12902 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected