import { setInterval } from "https://deno.land/x/deno@v1.28.3/cli/tsc/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);