Skip to content
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

Merged
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions files/en-us/web/api/abortsignal/timeout_static/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")}}.


### Return value

Expand Down Expand Up @@ -69,3 +70,7 @@ try {
## Browser compatibility

{{Compat}}

## See also
Copy link
Member

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.


- [`Number.isSafeInteger()`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger)