Skip to main content
method Deno.UnsafeCallback.prototype.ref

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