mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Reword
This commit is contained in:
parent
1ce9691356
commit
251398363f
|
|
@ -43,7 +43,7 @@ const MAGIC_NUMBER_OFFSET = Batched - 1;
|
|||
|
||||
// 1 unit of expiration time represents 10ms.
|
||||
export function msToExpirationTime(ms: number): ExpirationTime {
|
||||
// Always add an offset so that we don't clash with the magic number for NoWork.
|
||||
// Always subtract from the offset so that we don't clash with the magic number for NoWork.
|
||||
return MAGIC_NUMBER_OFFSET - ((ms / UNIT_SIZE) | 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user