Remove Conn.closeRead (#4970)

This commit is contained in:
Ryan Dahl 2020-04-28 15:17:55 -04:00 committed by GitHub
parent f899d76667
commit ea28a088a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 80 deletions

View file

@ -1899,11 +1899,12 @@ declare namespace Deno {
readonly remoteAddr: Addr;
/** The resource ID of the connection. */
readonly rid: number;
/** Shuts down (`shutdown(2)`) the reading side of the TCP connection. Most
* callers should just use `close()`. */
closeRead(): void;
/** Shuts down (`shutdown(2)`) the writing side of the TCP connection. Most
* callers should just use `close()`. */
* callers should just use `close()`.
*
* **Unstable** because of lack of testing and because Deno.shutdown is also
* unstable.
* */
closeWrite(): void;
}