summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-01-13 01:17:31 +0100
committerGitHub <noreply@github.com>2021-01-12 16:17:31 -0800
commit8142496c571e7a5e42f2a2886fe005c27d96f616 (patch)
treea4e9a1d152f4738f4667995ddc735309be74deb2 /cli/dts/lib.deno.unstable.d.ts
parent8d5af6ca5264201be1cb04b0bb1a0b88ce5166da (diff)
feat: stabilize Deno.shutdown() and Conn#closeWrite()
Closes: #9099
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index 0eaed73ba..1de7ed8cc 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -835,32 +835,6 @@ declare namespace Deno {
mtime: number | Date,
): Promise<void>;
- /** **UNSTABLE**: Under consideration to remove `ShutdownMode` entirely.
- *
- * Corresponds to `SHUT_RD`, `SHUT_WR`, `SHUT_RDWR` on POSIX-like systems.
- *
- * See: http://man7.org/linux/man-pages/man2/shutdown.2.html */
- export enum ShutdownMode {
- Read = 0,
- Write,
- ReadWrite, // TODO(ry) panics on ReadWrite.
- }
-
- /** **UNSTABLE**: Both the `how` parameter and `ShutdownMode` enum are under
- * consideration for removal.
- *
- * Shutdown socket send and receive operations.
- *
- * Matches behavior of POSIX shutdown(3).
- *
- * ```ts
- * const listener = Deno.listen({ port: 80 });
- * const conn = await listener.accept();
- * Deno.shutdown(conn.rid, Deno.ShutdownMode.Write);
- * ```
- */
- export function shutdown(rid: number, how: ShutdownMode): Promise<void>;
-
/** **UNSTABLE**: new API, yet to be vetted.
*
* A generic transport listener for message-oriented protocols. */