{
  "id": "node-timers-table",
  "kind": "table",
  "slug": "node-timers",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-timers/",
  "title": "Node.js timers - setTimeout, setInterval, setImmediate, unref and timers/promises",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "setTimeout(cb, delay, ...args)",
      "source": "Node.js API docs",
      "detail": "execution of a one-time callback after delay milliseconds clearTimeout()"
    },
    {
      "name": "setInterval(cb, delay, ...args)",
      "source": "Node.js API docs",
      "detail": "repeated execution of callback every delay milliseconds clearInterval()"
    },
    {
      "name": "setImmediate(cb, ...args)",
      "source": "Node.js API docs",
      "detail": "execution of the callback after I/O events' callbacks clearImmediate()"
    },
    {
      "name": "timeout.refresh()",
      "source": "Node.js API docs",
      "detail": "resets the start time to the current time and reschedules the timer."
    }
  ],
  "related_slugs": [
    "node-events",
    "node-process-and-console",
    "python-asyncio-basics"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Node.js API docs); MIT (nodejs/node (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}