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

Function deferredUpdates

code/composition/public/app.js:13667–13676  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13665 }
13666
13667 function deferredUpdates(fn) {
13668 var previousExpirationContext = expirationContext;
13669 var currentTime = recalculateCurrentTime();
13670 expirationContext = computeAsyncExpiration(currentTime);
13671 try {
13672 return fn();
13673 } finally {
13674 expirationContext = previousExpirationContext;
13675 }
13676 }
13677 function syncUpdates(fn, a, b, c, d) {
13678 var previousExpirationContext = expirationContext;
13679 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected