useInterval

fun useInterval(optionsOf: IntervalOptions.() -> Unit, block: () -> Unit): Triple<ResumeFn, PauseFn, IsActive>
fun useInterval(optionsOf: IntervalOptions.() -> Unit, ready: Boolean, block: () -> Unit)


fun useInterval(options: IntervalOptions = remember { IntervalOptions() }, block: () -> Unit): Triple<ResumeFn, PauseFn, IsActive>
fun useInterval(options: IntervalOptions = remember { IntervalOptions() }, ready: Boolean, block: () -> Unit)

Deprecated

Please use the performance-optimized version. Do not pass the Options instance directly. You can simply switch by adding `=` after the `optionsOf` function. If you need to use an older version, you need to explicitly declare the parameters as `options`