UNPKG
jcommon
Version:
latest (1.9.40)
1.9.40
1.9.39
1.9.38
1.9.37
1.9.36
1.9.35
1.9.34
1.9.33
1.9.32
1.9.31
1.9.30
1.9.29
1.9.28
1.9.27
1.9.24
1.9.23
1.9.22
1.9.21
1.9.20
1.9.19
1.9.18
1.9.17
1.9.16
1.9.15
1.9.14
1.9.13
1.9.12
1.9.11
1.9.10
1.9.9
1.9.8
1.9.7
1.9.6
1.9.5
1.9.1
1.9.0
1.8.9
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.0
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.1
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
JavaScript 常用纯函数工具库
github.com/wxingheng/jcommon
wxingheng/jcommon
jcommon
/
lib
/
sleep
/
index.d.ts
13 lines
(12 loc)
•
289 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** *
@description
: 休眠多少毫秒 *
@author
: wuxh *
@Date
: 2021-09-02 23:08:19 *
@param
{
number
}
milliseconds
*
@return
{
*
} *
@example
: fetchData = async () => { await sleep(1000) } */
export
declare
const
sleep
:
(
milliseconds
:
number
|
undefined
) =>
Promise
<
unknown
>;