From 0af021bd328e741c078a6fa0eed8605aa41f8cdd Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Wed, 19 Oct 2022 22:44:26 -0700 Subject: [PATCH] better Util.sleep signature --- src/client/webapp/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/webapp/util.ts b/src/client/webapp/util.ts index bb99960..083a36a 100644 --- a/src/client/webapp/util.ts +++ b/src/client/webapp/util.ts @@ -91,8 +91,8 @@ export default class Util { } /** waits a number of MS before continuing */ - static async sleep(ms: number): Promise { - return await new Promise(resolve => { + static async sleep(ms: number): Promise { + await new Promise(resolve => { setTimeout(resolve, ms); }); }