Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/timers.ts>setInterval

A modern runtime for JavaScript and TypeScript.
Go to Latest
function setInterval
import { setInterval } from "https://deno.land/x/deno@v0.30.0/cli/js/timers.ts";

Repeatedly calls a function, with a fixed time delay between each call.

Parameters

cb: (...args: Args) => void
optional
delay = [UNSUPPORTED]
...args: Args

Returns

number