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

Function computeAsyncExpiration

code/composition/public/app.js:13533–13540  ·  view source on GitHub ↗
(currentTime)

Source from the content-addressed store, hash-verified

13531 }
13532
13533 function computeAsyncExpiration(currentTime) {
13534 // Given the current clock time, returns an expiration time. We use rounding
13535 // to batch like updates together.
13536 // Should complete within ~1000ms. 1200ms max.
13537 var expirationMs = 5000;
13538 var bucketSizeMs = 250;
13539 return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs);
13540 }
13541
13542 function computeInteractiveExpiration(currentTime) {
13543 // Should complete within ~500ms. 600ms max.

Callers 3

deferredUpdatesFunction · 0.70

Calls 1

computeExpirationBucketFunction · 0.70

Tested by

no test coverage detected