setInterval

external fun setInterval(handler: TimerHandler, timeout: Int = definedExternally): Interval(source)

MDN Reference


fun setInterval(timeout: Duration, handler: TimerHandler): Interval(source)