Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jbilcke-hf
/
ai-tube
like
281
Running
on
CPU Upgrade
App
Files
Files
Community
9
f27679f
ai-tube
/
src
/
lib
/
sleep.ts
jbilcke-hf
HF staff
🍿
1f122c3
about 1 year ago
raw
Copy download link
history
blame
Safe
150 Bytes
export
const
sleep
=
async
(
durationInMs:
number
) =>
new
Promise
(
(
resolve
) =>
{
setTimeout
(
() =>
{
resolve
(
true
)
}, durationInMs)
})