From f0ae49019b5758389a44477914b7e13b822e791a Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 19 Oct 2021 16:36:56 +0200 Subject: Code improvements --- src/util/delay.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/util/delay.ts (limited to 'src/util/delay.ts') diff --git a/src/util/delay.ts b/src/util/delay.ts new file mode 100644 index 0000000..1fc86a2 --- /dev/null +++ b/src/util/delay.ts @@ -0,0 +1 @@ +export default (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)); -- cgit v1.2.3-70-g09d2