next

fun next(vararg otherTasks: Task): IncrementingTaskGroup

Compose this task into a IncrementingTaskGroup with the supplied tasks to run the next task in sequence after the previous one finishes, while looping back to the first task.


infix fun next(otherTask: Task): IncrementingTaskGroup

Compose this task into a IncrementingTaskGroup with the supplied task to run alongside this one until one finishes.