better Util.sleep signature

This commit is contained in:
Michael Peters 2022-10-19 22:44:26 -07:00
parent cb899d92a0
commit 0af021bd32

View File

@ -91,8 +91,8 @@ export default class Util {
} }
/** waits a number of MS before continuing */ /** waits a number of MS before continuing */
static async sleep(ms: number): Promise<unknown> { static async sleep(ms: number): Promise<void> {
return await new Promise(resolve => { await new Promise(resolve => {
setTimeout(resolve, ms); setTimeout(resolve, ms);
}); });
} }