Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.unstable.d.ts>Deno.Listener

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.Listener
implements AsyncIterable<Conn>
import { type Deno } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.unstable.d.ts";
const { Listener } = Deno;

Methods

ref(): void

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.

unref(): void

UNSTABLE: New API, yet to be vetted.

Make the listener not block the event loop from finishing.