aicomicsbook / src /lib /sleep.ts
aigorithm's picture
commit
2254a72
raw
history blame contribute delete
150 Bytes
export const sleep = async (durationInMs: number) =>
new Promise((resolve) => {
setTimeout(() => {
resolve(true)
}, durationInMs)
})