then

infix fun TaskHandle.then(delay: Ticks): ThenScope

Chains a task to be executed after the current task with the specified delay.

This allows for a fluent syntax to schedule sequential tasks: task1 then 20.ticks run { task2 }

Return

a ThenScope instance to continue the chain

Parameters

delay

the amount of time to wait after the previous task completes