Skip to content

Scheduler

hexagon_scheduler

Repeated tasks execution based on Cron expressions for Hexagon framework. It uses the Cron-utils Java Library.

You can check an usage example in the following method:

val cron = CronScheduler()
val times = 1
var count = 0

cron.schedule("0/1 * * * * ?") {
    count++
}

sleep((times * 1_000) + 100L)
cron.shutdown()
assert(count == times)

Packages

Name Summary
com.hexagonkt.scheduler Classes for scheduling blocks of code repeatedly based on a Cron expression.

Index

All Types

Comments