From 5a4d69354c3c240a0ea42804b712942f1c30e744 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 24 Jan 2024 13:47:48 +1100 Subject: feat: deprecate `Deno.shutdown()` (#22067) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For removal in Deno v2. --------- Signed-off-by: Bartek Iwańczuk Co-authored-by: Bartek Iwańczuk --- ext/net/lib.deno_net.d.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext') diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index e3051d6ad..2392c1ff4 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -397,6 +397,9 @@ declare namespace Deno { * Deno.shutdown(conn.rid); * ``` * + * @deprecated Use {@linkcode Deno.Conn.closeWrite} instead. + * {@linkcode Deno.shutdown} will be removed in Deno 2.0. + * * @category Network */ export function shutdown(rid: number): Promise; -- cgit v1.2.3