schedule

fun schedule(cronExpression: String, callback: () -> Unit)

Schedules a block of code to be executed repeatedly by a Cron expression.

Parameters

cronExpression

Periodicity of the task in Cron format.

callback

Task code to be executed periodically.