then

fun then(vararg otherTasks: Task): SequentialTaskGroup

Compose this task into a SequentialTaskGroup with the supplied tasks to follow after this one.


infix fun then(otherTask: Task): SequentialTaskGroup

Compose this task into a SequentialTaskGroup with the supplied task to follow after this one.


infix fun then(runnable: Runnable): SequentialTaskGroup

Implicitly run a SequentialTaskGroup with this supplied Runnable, queued to run when this task finishes.