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

Function computeAsyncExpiration

code/event-handlers/public/app.js:12725–12732  ·  view source on GitHub ↗
(currentTime)

Source from the content-addressed store, hash-verified

12723 }
12724
12725 function computeAsyncExpiration(currentTime) {
12726 // Given the current clock time, returns an expiration time. We use rounding
12727 // to batch like updates together.
12728 // Should complete within ~1000ms. 1200ms max.
12729 var expirationMs = 5000;
12730 var bucketSizeMs = 250;
12731 return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs);
12732 }
12733
12734 function computeInteractiveExpiration(currentTime) {
12735 // Should complete within ~500ms. 600ms max.

Callers 3

deferredUpdatesFunction · 0.70

Calls 1

computeExpirationBucketFunction · 0.70

Tested by

no test coverage detected