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

x/xdg/vendor/types/deno.d.ts>setInterval

Determine XDG Base Directory paths (OS/platform portable)
Go to Latest
function setInterval
import { setInterval } from "https://deno.land/x/xdg@v10.5.1/vendor/types/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