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

如何让 JavaScript 中的循环慢下来 #7913

Closed
lsvih opened this issue Jan 25, 2021 · 3 comments · Fixed by #7919
Closed

如何让 JavaScript 中的循环慢下来 #7913

lsvih opened this issue Jan 25, 2021 · 3 comments · Fixed by #7919

Comments

@lsvih
Copy link
Member

lsvih commented Jan 25, 2021


  • 翻译时间:3 天
  • 校对时间:1 天
  • 翻译积分:2 分
  • 校对积分:1 分
  • 积分有什么用
@PassionPenguin
Copy link
Contributor

这文章好水啊哈哈哈哈哈
翻译认领:)

要是我写估计直接settimeout,或者其实这种方式slow down并非人为指定,要真正意义上部分步骤停顿那就是简简单单async Promise到时间再start promise

@lsvih
Copy link
Member Author

lsvih commented Jan 25, 2021

import sleep from 'await-sleep'

@PassionPenguin
Copy link
Contributor

import sleep from 'await-sleep'

https://net2.com/how-to-shut-down-restart-suspend-and-hibernate-linux/

@lsvih lsvih changed the title How To Slow Down A For-Loop in JavaScript 如何让 JavaScript 中的循环慢下来 Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants