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

Function computeAsyncExpiration

code/new-context-api/public/app.js:12756–12763  ·  view source on GitHub ↗
(currentTime)

Source from the content-addressed store, hash-verified

12754 }
12755
12756 function computeAsyncExpiration(currentTime) {
12757 // Given the current clock time, returns an expiration time. We use rounding
12758 // to batch like updates together.
12759 // Should complete within ~1000ms. 1200ms max.
12760 var expirationMs = 5000;
12761 var bucketSizeMs = 250;
12762 return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs);
12763 }
12764
12765 function computeInteractiveExpiration(currentTime) {
12766 // Should complete within ~500ms. 600ms max.

Callers 3

deferredUpdatesFunction · 0.70

Calls 1

computeExpirationBucketFunction · 0.70

Tested by

no test coverage detected