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

关于timeout的第二个参数疑问 #1

Open
kvsur opened this issue Dec 30, 2020 · 1 comment
Open

关于timeout的第二个参数疑问 #1

kvsur opened this issue Dec 30, 2020 · 1 comment

Comments

@kvsur
Copy link

kvsur commented Dec 30, 2020

请问 excuteAsyncCallback 方法中的 setTimeout 第二个参数设置为 number 4 是基于怎么的考虑呢?可以改为其他大于或者小于 4 的数么?

@MuYunyun
Copy link
Owner

4 只是一个粗略的事件循环的时间估值, 在不同宿主环境下, 这个值是不一样, 比如在 node 环境中, 这个值更小。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants