Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.shared_globals.d.ts>setInterval

A modern runtime for JavaScript and TypeScript.
Go to Latest
function setInterval
import { setInterval } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.shared_globals.d.ts";

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

// Outputs 'hello' to the console every 500ms
setInterval(() => { console.log('hello'); }, 500);

Parameters

cb: (...args: any[]) => void
optional
delay: number
...args: any[]

Returns

number