period

abstract fun period(time: TaskTime): Task.Builder

Sets the delay between subsequent executions of the task.

This defines how long after each execution the task will be ran again.

If this is not set, the task will only run once.

Return

this builder

Parameters

time

the amount of time for the delay between executions


open fun period(duration: Duration): Task.Builder

Sets the delay between subsequent executions of the task.

Return

this builder

Parameters

duration

the duration for the delay between executions

See also


open fun period(amount: Long, unit: TemporalUnit): Task.Builder

Sets the delay between subsequent executions of the task.

Return

this builder

Parameters

amount

the amount of time for the delay between executions

unit

the unit of time for the delay between executions

See also