From f545f1d571a154c53f6bda3a30bd69a298d63846 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Sat, 21 Sep 2019 21:37:05 +0300 Subject: [PATCH] Fix types in example_client for ws module (denoland/deno_std#609) Original: https://github.com/denoland/deno_std/commit/a4a8bb2948e5984656724c51a803293ce82c035f --- ws/example_client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ws/example_client.ts b/ws/example_client.ts index 665c4cd8ca..e3f2f355eb 100644 --- a/ws/example_client.ts +++ b/ws/example_client.ts @@ -44,7 +44,9 @@ async function main(): Promise { } // FIXME: Without this, // sock.receive() won't resolved though it is readable... - await new Promise((resolve): void => setTimeout(resolve, 0)); + await new Promise((resolve): void => { + setTimeout(resolve, 0); + }); } await sock.close(1000); // FIXME: conn.close() won't shutdown process...