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

Function deferredUpdates

code/communication/public/app.js:13564–13573  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13562 }
13563
13564 function deferredUpdates(fn) {
13565 var previousExpirationContext = expirationContext;
13566 var currentTime = recalculateCurrentTime();
13567 expirationContext = computeAsyncExpiration(currentTime);
13568 try {
13569 return fn();
13570 } finally {
13571 expirationContext = previousExpirationContext;
13572 }
13573 }
13574 function syncUpdates(fn, a, b, c, d) {
13575 var previousExpirationContext = expirationContext;
13576 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected