mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
feat: stabilize Deno.Conn.ref/unref (#21890)
This commit is contained in:
parent
3298ca06f5
commit
c2127a86cb
1 changed files with 2 additions and 7 deletions
9
ext/net/lib.deno_net.d.ts
vendored
9
ext/net/lib.deno_net.d.ts
vendored
|
@ -70,18 +70,13 @@ declare namespace Deno {
|
|||
* callers should just use `close()`. */
|
||||
closeWrite(): Promise<void>;
|
||||
|
||||
/** **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* Make the connection block the event loop from finishing.
|
||||
/** Make the connection block the event loop from finishing.
|
||||
*
|
||||
* Note: the connection blocks the event loop from finishing by default.
|
||||
* This method is only meaningful after `.unref()` is called.
|
||||
*/
|
||||
ref(): void;
|
||||
/** **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* Make the connection not block the event loop from finishing.
|
||||
*/
|
||||
/** Make the connection not block the event loop from finishing. */
|
||||
unref(): void;
|
||||
|
||||
readonly readable: ReadableStream<Uint8Array>;
|
||||
|
|
Loading…
Reference in a new issue