setInterval

open fun setInterval(@NonNull interval: Measure<Time>)

Sets the interval for this periodic function. A zero or negative interval will execute the function on every call.

Parameters

interval

the new interval