diff options
Diffstat (limited to 'cli/dts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index a61d672f7..b3bbef030 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1296,6 +1296,22 @@ declare namespace Deno { alpnProtocols?: string[]; } + 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 should be tested first. * * Acquire an advisory file-system lock for the provided file. `exclusive` |