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

x/deno/cli/js/lib.deno_runtime.d.ts>__timers.setInterval

A modern runtime for JavaScript and TypeScript.
Go to Latest
function __timers.setInterval
import { __timers } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { setInterval } = __timers;

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

Parameters

cb: (...args: Args) => void
optional
delay: number
...args: Args

Returns

number