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

Fix typo: change '浩渺' to '毫秒' #25173

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Changes from all 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
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/window/setimmediate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var immediateID = setImmediate(func);

- {{DOMxRef("Window.postMessage", "postMessage()")}} 可以被用来触发一个 immediate 但会产生回调。请注意,Internet Explorer 8 包含 postMessage 的同步版本,这意味着它不能被用来作为代替品。
- [MessageChannel](/zh-CN/docs/Web/API/MessageChannel) 可以在 Web Workers 内部很好的被使用,而 postMessage 的语义意味着它不能在那使用。
- `setTimeout(fn, 0)` *可以*使用,然而按照 [HTML 规范](https://html.spec.whatwg.org/multipage/webappapis.html#timers),嵌套深度超过 5 级的定时器,会被限制在 4 浩渺,它没有为 `setImmediate` 的天然及时性提供合适的 polyfill。
- `setTimeout(fn, 0)` *可以*使用,然而按照 [HTML 规范](https://html.spec.whatwg.org/multipage/webappapis.html#timers),嵌套深度超过 5 级的定时器,会被限制在 4 毫秒,它没有为 `setImmediate` 的天然及时性提供合适的 polyfill。

所有这些技术都被纳入 [robust setImmediate polyfill](https://github.com/NobleJS/setImmediate) 中。

Expand Down
Loading