mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 01:59:06 -05:00
Fix types in example_client for ws module (denoland/deno_std#609)
Original: a4a8bb2948
This commit is contained in:
parent
b7dea16a37
commit
f545f1d571
1 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ 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...
|
||||
|
|
Loading…
Reference in a new issue