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

Function deferredUpdates

code/third-party/public/app.js:12762–12771  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

12760 }
12761
12762 function deferredUpdates(fn) {
12763 var previousExpirationContext = expirationContext;
12764 var currentTime = recalculateCurrentTime();
12765 expirationContext = computeAsyncExpiration(currentTime);
12766 try {
12767 return fn();
12768 } finally {
12769 expirationContext = previousExpirationContext;
12770 }
12771 }
12772 function syncUpdates(fn, a, b, c, d) {
12773 var previousExpirationContext = expirationContext;
12774 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected