update comment in computeAsyncExpiration() to reflect code (#12994)

This commit is contained in:
Nathan Quarles
2018-06-07 21:12:08 +01:00
committed by Dan Abramov
parent 52fbe7612e
commit 9cf3733a9a
+1 -1
View File
@@ -1208,7 +1208,7 @@ function captureCommitPhaseError(fiber: Fiber, error: mixed) {
function computeAsyncExpiration(currentTime: ExpirationTime) {
// Given the current clock time, returns an expiration time. We use rounding
// to batch like updates together.
// Should complete within ~1000ms. 1200ms max.
// Should complete within ~5000ms. 5250ms max.
const expirationMs = 5000;
const bucketSizeMs = 250;
return computeExpirationBucket(currentTime, expirationMs, bucketSizeMs);