From 98878bd81231a631c494b6767576097f945eb813 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 14 Jan 2021 20:32:27 -0800 Subject: refactor: IO resource types, fix concurrent read/write and graceful close (#9118) Fixes: 9032. --- cli/dts/lib.deno.ns.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/dts/lib.deno.ns.d.ts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 8026d934a..f8ec0c7f3 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -1710,9 +1710,9 @@ declare namespace Deno { readonly remoteAddr: Addr; /** The resource ID of the connection. */ readonly rid: number; - /** Shuts down (`shutdown(2)`) the writing side of the TCP connection. Most + /** Shuts down (`shutdown(2)`) the write side of the connection. Most * callers should just use `close()`. */ - closeWrite(): void; + closeWrite(): Promise; } export interface ListenOptions { -- cgit v1.2.3