mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
feat: Stabilize Deno.TcpConn.setNoDelay() and Deno.TcpConn.setKeepAlive() (#17003)
This commit stabilizes following APIs: - `Deno.TcpConn.setNoDelay()` - `Deno.TcpConn.setKeepAlive()`
This commit is contained in:
parent
392cca87a8
commit
f9db129bdf
5 changed files with 8 additions and 18 deletions
14
ext/net/lib.deno_net.d.ts
vendored
14
ext/net/lib.deno_net.d.ts
vendored
|
@ -185,19 +185,13 @@ declare namespace Deno {
|
|||
/** @category Network */
|
||||
export interface TcpConn extends Conn {
|
||||
/**
|
||||
* **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617.
|
||||
*
|
||||
* Enable/disable the use of Nagle's algorithm.
|
||||
*
|
||||
* @param [nodelay=true]
|
||||
* @param [noDelay=true]
|
||||
*/
|
||||
setNoDelay(nodelay?: boolean): void;
|
||||
/**
|
||||
* **UNSTABLE**: new API, see https://github.com/denoland/deno/issues/13617.
|
||||
*
|
||||
* Enable/disable keep-alive functionality.
|
||||
*/
|
||||
setKeepAlive(keepalive?: boolean): void;
|
||||
setNoDelay(noDelay?: boolean): void;
|
||||
/** Enable/disable keep-alive functionality. */
|
||||
setKeepAlive(keepAlive?: boolean): void;
|
||||
}
|
||||
|
||||
/** @category Network */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue