sleep
Script
v1
Fork
1
2
3
export
const
sleep
=
async
(
ms
:
number
)
=>
{
await
new
Promise
(
(
r
)
=>
setTimeout
(
r
,
ms
)
)
;
}
;