Skip to main content
Module

x/timers/mod.ts>Interval

All timing functions you need - long and async timeouts, intervals, promise timeouts and more
Latest
class Interval
extends Timer<T>
Re-export
import { Interval } from "https://deno.land/x/timers@v0.2.3/mod.ts";

Constructors

new
Interval(
cb: Listener<T>,
delay?: number | string,
options?: IntervalOptions<T>,
)

Type Parameters

optional
T extends any[] = any[]

Properties

protected
_runs: number
readonly
options: IntervalOptions<T>
readonly
ran: boolean

This will only be set to true, if the times options has been passed and the interval has run times often

readonly
runs: number

Methods

run(): number