1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 10:39:10 -05:00

Fix types in example_client for ws module (denoland/deno_std#609)

Original: a4a8bb2948
This commit is contained in:
Dmitry Sharshakov 2019-09-21 21:37:05 +03:00 committed by Ryan Dahl
parent b7dea16a37
commit f545f1d571

View file

@ -44,7 +44,9 @@ async function main(): Promise<void> {
} }
// FIXME: Without this, // FIXME: Without this,
// sock.receive() won't resolved though it is readable... // 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); await sock.close(1000);
// FIXME: conn.close() won't shutdown process... // FIXME: conn.close() won't shutdown process...