1
0
Fork 0
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:
Bartek Iwańczuk 2024-01-14 18:04:33 +01:00 committed by GitHub
parent 3298ca06f5
commit c2127a86cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>;