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#ref

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

Adds one to this callback's reference counting and returns the new reference count.

If the callback's reference count is non-zero, it will keep Deno's process from exiting.

Returns

number