Deno.UnsafeCallback.prototype.unref - Deno documentation
method Deno.UnsafeCallback.prototype.unref
UnsafeCallback.prototype.unref(): number

Decrements the callback's reference counting and returns the new reference count.

Calling unref() does not stop a callback from waking up the Deno event loop when called from foreign threads.

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

Return Type

number