mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
feat: Stabilize Deno.Listener.ref/unref (#17477)
This commit is contained in:
parent
c230a95551
commit
da23f7f876
4 changed files with 11 additions and 28 deletions
17
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
17
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -1082,23 +1082,6 @@ declare namespace Deno {
|
|||
alpnProtocols?: string[];
|
||||
}
|
||||
|
||||
/** @category Network */
|
||||
export interface Listener extends AsyncIterable<Conn> {
|
||||
/** **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* Make the listener block the event loop from finishing.
|
||||
*
|
||||
* Note: the listener 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 listener not block the event loop from finishing.
|
||||
*/
|
||||
unref(): void;
|
||||
}
|
||||
|
||||
/** **UNSTABLE**: New API, yet to be vetted.
|
||||
*
|
||||
* Acquire an advisory file-system lock for the provided file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue