Package-level declarations

Types

Link copied to clipboard

Periodik is a read-only property delegate that can provide a value updated periodically.

Link copied to clipboard
class PeriodikBuilder<Type>(schedule: Schedule, currentInstant: Periodik<Type>.() -> Instant = { Instant.now() }, adjustment: Periodik<Type>.(Instant) -> Instant = { it }, dispatcher: CoroutineDispatcher = Periodik.defaultDispatcher, wait: suspend Periodik<Type>.(Duration) -> Unit = { delay(it) }, debug: Periodik<Type>.(String) -> Unit = { println(it) }, log: Periodik<Type>.(String) -> Unit = { println(it) }, error: Periodik<Type>.(String) -> Nothing = { System.err.println(it); throw IllegalStateException(it) }, deferInitialization: Boolean = false)

A builder for Periodik instances with default behaviors and allowing for customizations

Link copied to clipboard
interface Schedule

A schedule that determines when the next occurrence will be, taking the last occurrence into account