mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 13:40:47 +00:00
Consolidate sleep usages into a tested utility function
This commit is contained in:
committed by
Scott Nonnenberg
parent
c4de9436f3
commit
60f2422e2a
5
ts/util/sleep.ts
Normal file
5
ts/util/sleep.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function sleep(ms: number): Promise<void> {
|
||||
return new Promise(resolve => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user