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

x/levo/templates/new-project/lib/lib.deno_runtime.d.ts>setInterval

Server side rendering with The Elm Architecture in Deno
Latest
function setInterval
import { setInterval } from "https://deno.land/x/levo@v0.0.27/templates/new-project/lib/lib.deno_runtime.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