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