Skip to main content
Module

x/netzo/deno.d.ts>setInterval

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function setInterval
import { setInterval } from "https://deno.land/x/netzo@v0.1.8/deno.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