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

Function computeAsyncExpiration

code/third-party/public/app.js:12628–12635  ·  view source on GitHub ↗
(currentTime)

Source from the content-addressed store, hash-verified

12626 }
12627
12628 function computeAsyncExpiration(currentTime) {
12629 // Given the current clock time, returns an expiration time. We use rounding
12630 // to batch like updates together.
12631 // Should complete within ~1000ms. 1200ms max.
12632 var expirationMs = 5000;
12633 var bucketSizeMs = 250;
12634 return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs);
12635 }
12636
12637 function computeInteractiveExpiration(currentTime) {
12638 // Should complete within ~500ms. 600ms max.

Callers 3

deferredUpdatesFunction · 0.70

Calls 1

computeExpirationBucketFunction · 0.70

Tested by

no test coverage detected