Spaces:
Sleeping
Sleeping
File size: 150 Bytes
f5d8038 |
1 2 3 4 5 6 |
export const sleep = async (durationInMs: number) =>
new Promise((resolve) => {
setTimeout(() => {
resolve(true)
}, durationInMs)
}) |