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

Function deferredUpdates

code/redux/public/app.js:13780–13789  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13778 }
13779
13780 function deferredUpdates(fn) {
13781 var previousExpirationContext = expirationContext;
13782 var currentTime = recalculateCurrentTime();
13783 expirationContext = computeAsyncExpiration(currentTime);
13784 try {
13785 return fn();
13786 } finally {
13787 expirationContext = previousExpirationContext;
13788 }
13789 }
13790 function syncUpdates(fn, a, b, c, d) {
13791 var previousExpirationContext = expirationContext;
13792 expirationContext = Sync;

Callers

nothing calls this directly

Calls 2

recalculateCurrentTimeFunction · 0.70
computeAsyncExpirationFunction · 0.70

Tested by

no test coverage detected