Skip to main content
Module

x/timers/mod.ts>every

All timing functions you need - long and async timeouts, intervals, promise timeouts and more
Latest
function every
import { every } from "https://deno.land/x/timers@v0.2.3/mod.ts";

Examples

Example 1

import { every } from "https://deno.land/x/timers@v0.2.0/mod.ts";

every("1min").limit(60).do(() => {
  console.log(new Date().toLocaleTimeString());
});

Type Parameters

optional
T extends any[] = any[]

Parameters

time: string | number
optional
options: EveryOptions<T> = [UNSUPPORTED]