Then

fun Then(task: TaskRef<*>): ConditionRef

Names the task that runs when the condition holds.

Return

This condition, so Else can follow.

Parameters

task

Task of the same Dag, which the condition skips when it does not hold.

Throws

if the task belongs to another Dag, or this side is already named.