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

Function deferredUpdates

code/event-handlers/public/app.js:12859–12868  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

12857 }
12858
12859 function deferredUpdates(fn) {
12860 var previousExpirationContext = expirationContext;
12861 var currentTime = recalculateCurrentTime();
12862 expirationContext = computeAsyncExpiration(currentTime);
12863 try {
12864 return fn();
12865 } finally {
12866 expirationContext = previousExpirationContext;
12867 }
12868 }
12869 function syncUpdates(fn, a, b, c, d) {
12870 var previousExpirationContext = expirationContext;
12871 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected