delay

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

Sets the initial execution delay for the task.

This defines how long after the task's initial scheduling it will first be ran.

If this is not set, the task will be executed immediately.

Return

this builder

Parameters

time

the amount of time for the initial delay


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

Sets the initial execution delay for the task.

Return

this builder

Parameters

duration

the duration for the initial delay

See also


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

Sets the initial execution delay for the task.

Return

this builder

Parameters

amount

the amount of time for the initial delay

unit

the unit of time for the initial delay

See also