Skip to content

Commit

Permalink
Fix types in example_client for ws module (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsseng authored and ry committed Sep 21, 2019
1 parent 5113457 commit a4a8bb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ws/example_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit a4a8bb2

Please sign in to comment.