Skip to main content
Timeout.prototype.hasRef - timers - Node documentation
method Timeout.prototype.hasRef

Usage in Deno

import { Timeout } from "node:timers";
Timeout.prototype.hasRef(): boolean

If true, the Timeout object will keep the Node.js event loop active.

Return Type

boolean