-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mention the safe range of 'time' param value of timeout() #36054
Mention the safe range of 'time' param value of timeout() #36054
Conversation
Preview URLs (comment last updated: 2024-09-26 22:12:40) |
@@ -27,6 +27,7 @@ AbortSignal.timeout(time) | |||
|
|||
- `time` | |||
- : The "active" time in milliseconds before the returned {{domxref("AbortSignal")}} will abort. | |||
The value must be within range of 0 and {{jsxref("Number.MAX_SAFE_INTEGER")}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The value must be within range of 0 and {{jsxref("Number.MAX_SAFE_INTEGER")}} | |
The value must be within range of 0 and {{jsxref("Number.MAX_SAFE_INTEGER")}}. |
@@ -69,3 +70,7 @@ try { | |||
## Browser compatibility | |||
|
|||
{{Compat}} | |||
|
|||
## See also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this; it's a really minor point and not directly related. If you really want to add a see also, link to setTimeout
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
* Mention the safe range of 'time' param value of timeout() * Add 'isSafeInteger' to the See also section * Correct the link for case sensitivity * Revert "Correct the link for case sensitivity" This reverts commit 8760abd. * Revert "Add 'isSafeInteger' to the See also section" This reverts commit 9d72aa5. * Add missing dot for the range addition
* Mention the safe range of 'time' param value of timeout() * Add 'isSafeInteger' to the See also section * Correct the link for case sensitivity * Revert "Correct the link for case sensitivity" This reverts commit 8760abd. * Revert "Add 'isSafeInteger' to the See also section" This reverts commit 9d72aa5. * Add missing dot for the range addition
This pull request fixes #36044
It adds the brief note of a range of value that can be passed to
timeout()
method.Because the
time
should be of typeunsigned long
, I described it as the range of 0Number.MAX_SAFE_INTEGER
.