MCPcopy Create free account
hub / github.com/microsoft/SandDance / computeExpirationBucket

Function computeExpirationBucket

docs/external/js/react-dom.development.js:11289–11291  ·  view source on GitHub ↗
(currentTime, expirationInMs, bucketSizeMs)

Source from the content-addressed store, hash-verified

11287 }
11288
11289 function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
11290 return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
11291 } // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
11292 // the names to reflect.
11293
11294

Callers 3

computeAsyncExpirationFunction · 0.85

Calls 1

ceilingFunction · 0.85

Tested by

no test coverage detected