6 lines
124 B
TypeScript
6 lines
124 B
TypeScript
|
export function sleep(ms: number): Promise<void> {
|
||
|
return new Promise((resolve) => {
|
||
|
setTimeout(resolve, ms);
|
||
|
});
|
||
|
}
|