signal-desktop/ts/util/sleep.ts

6 lines
122 B
TypeScript
Raw Normal View History

export function sleep(ms: number): Promise<void> {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
}