Skip to main content
Module

std/node/net.ts>Server#unref

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Server.prototype.unref
import { Server } from "https://deno.land/std@0.167.0/node/net.ts";

Calling unref() on a server will allow the program to exit if this is the only active server in the event system. If the server is already unrefed calling unref() again will have no effect.