community / src /utils /sleep.mts
jbilcke-hf's picture
jbilcke-hf HF staff
initial commit
b2d7d99
raw
history blame
150 Bytes
export const sleep = async (durationInMs: number) =>
new Promise((resolve) => {
setTimeout(() => {
resolve(true)
}, durationInMs)
})