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

Function deferredUpdates

code/styling/public/app.js:13529–13538  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13527 }
13528
13529 function deferredUpdates(fn) {
13530 var previousExpirationContext = expirationContext;
13531 var currentTime = recalculateCurrentTime();
13532 expirationContext = computeAsyncExpiration(currentTime);
13533 try {
13534 return fn();
13535 } finally {
13536 expirationContext = previousExpirationContext;
13537 }
13538 }
13539 function syncUpdates(fn, a, b, c, d) {
13540 var previousExpirationContext = expirationContext;
13541 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected