Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.Listener

interface Listener extends AsyncIterable<Conn> {
ref(): void;
unref(): void;
}

§Extends

§
AsyncIterable<Conn>
[src]

§Methods

§
ref(): void
[src]

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
[src]

UNSTABLE: new API, yet to be vetted.

Make the listener not block the event loop from finishing.