signal-desktop/ts/util/sleep.ts
2020-11-04 13:03:13 -06:00

8 lines
205 B
TypeScript

// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function sleep(ms: number): Promise<void> {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
}