Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/runtime.ts>refTimer

A JavaScript extension package for building strong and modern applications.
Latest
function refTimer
import { refTimer } from "https://deno.land/x/ayonli_jsext@v0.9.72/runtime.ts";

Make the timer block the event loop from finishing again after it has been unrefed.

NOTE: This function is only available in Node.js, Deno and Bun, in other environments, it's a no-op.

Parameters

timer: NodeJS.Timeout | number