From b90e7a04179928cdeed7758cbd4873e978c85fa2 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 24 Jul 2022 09:12:17 +0200 Subject: [PATCH] Add await MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even though it technically works without, let’s be clear that syscalls are always async. --- hello.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hello.ts b/hello.ts index e8e528a..6bbba1c 100644 --- a/hello.ts +++ b/hello.ts @@ -8,5 +8,5 @@ const loneRangerQuotes = [ ]; export async function helloWorld() { - flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]); -} \ No newline at end of file + await flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]); +}