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.UnsafeCallback#unref

A modern runtime for JavaScript and TypeScript.
Go to Latest
method Deno.UnsafeCallback.prototype.unref
import { Deno } from "https://deno.land/x/deno@v1.28.1/cli/dts/lib.deno.unstable.d.ts";
const { UnsafeCallback } = Deno;

Removes one from this callback's reference counting and returns the new reference count.

If the callback's reference counter is zero, it will no longer keep Deno's process from exiting.

Returns

number