Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/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.0/cli/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.