Kron Scheduler
interface KronScheduler
Content copied to clipboard
This interface was created for abstraction of next operation. Currently, there is only dev.inmo.krontab.internal.CronDateTimeScheduler realisation of this interface inside of this library, but you it is possible to create your own realisation of this interface for scheduling, for example, depending of users activity or something like this
See also
dev. inmo. krontab. internal. Cron Date Time Scheduler
Functions
Inheritors
Extensions
do Infinity
Link copied to clipboard
inline suspend fun KronScheduler.doInfinity(noinline block: suspend () -> Unit)
Content copied to clipboard
Will execute block without any checking of result
do Once
Link copied to clipboard
inline suspend fun <T> KronScheduler.doOnce(noinline block: suspend () -> T): T
Content copied to clipboard
Execute block once at the KronScheduler.next time and return result of block calculation.
do While
Link copied to clipboard
inline suspend fun KronScheduler.doWhile(noinline block: suspend () -> Boolean)
Content copied to clipboard
Will execute block while it will return true as a result of its calculation
next
Link copied to clipboard
next Or Now
Link copied to clipboard
next Or Relative
Link copied to clipboard
suspend fun KronScheduler.nextOrRelative(relatively: DateTime = DateTime.now()): DateTime
Content copied to clipboard
next Time Zoned
Link copied to clipboard
plus
Link copied to clipboard
operator fun KronScheduler.plus(kronScheduler: KronScheduler): CollectionKronScheduler
Content copied to clipboard
Sources
common source
Link copied to clipboard