Skip to main content
Deno.Listener.ref - Deno documentation
method Deno.Listener.ref
Listener.ref(): void

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.

Return Type

void