summaryrefslogtreecommitdiff
path: root/std/ws/example_client.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-10-09 17:22:22 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-10-09 17:22:22 -0400
commit93f7f00c956c14620ef031626f124b57397ca867 (patch)
treec5a9f536e79d2c8d2d02897511a9138acaf35394 /std/ws/example_client.ts
parent28293acd9c12a94f5d769706291032e844c7b92b (diff)
Run deno_std tests in github actions
Diffstat (limited to 'std/ws/example_client.ts')
-rw-r--r--std/ws/example_client.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/std/ws/example_client.ts b/std/ws/example_client.ts
index e3f2f355e..a6649570e 100644
--- a/std/ws/example_client.ts
+++ b/std/ws/example_client.ts
@@ -44,9 +44,11 @@ async function main(): Promise<void> {
}
// 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...