Skip to main content
The Deno 2 Release Candidate is here
Learn more

tick

Produces a value on the given interval

import { tick } from "https://deno.land/x/tick/mod.ts";

for await (const count of tick(1_000)) {
  console.log(`${count + 1} seconds have passed`);
}