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

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

Removes the C function pointer associated with this instance.

Continuing to use the instance after calling this object will lead to errors and crashes.

Calling this method will also immediately set the callback's reference counting to zero and it will no longer keep Deno's process from exiting.