summaryrefslogtreecommitdiff
path: root/cli/js/ops/net.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/ops/net.ts')
-rw-r--r--cli/js/ops/net.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/cli/js/ops/net.ts b/cli/js/ops/net.ts
index a026189d2..a108e1c72 100644
--- a/cli/js/ops/net.ts
+++ b/cli/js/ops/net.ts
@@ -13,14 +13,6 @@ export enum ShutdownMode {
ReadWrite // unused
}
-/** Shut down socket send and receive operations.
- *
- * Matches behavior of POSIX shutdown(3).
- *
- * 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): void {
sendSync("op_shutdown", { rid, how });
}