ente/packages/shared/utils/index.ts
2023-11-02 16:09:16 +05:30

6 lines
138 B
TypeScript

export async function sleep(time: number) {
await new Promise((resolve) => {
setTimeout(() => resolve(null), time);
});
}