Skip to content

Commit b21a815

Browse files
committed
function sleep使用node的setTimeout实现
1 parent 6751f1e commit b21a815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/shared/utils/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//通用且与项目无关的方法
2+
import { setTimeout } from 'timers'
23

34
export function isASCII(str) {
45
return /^[\x00-\x7F]*$/.test(str)

0 commit comments

Comments
 (0)