withLoop

Adds a sub-graph of tasks that may loop if any of them return . The sub-graph will run after any previously added tasks and before any subsequently added ones. If the final task in the sub-graph returns the tasks in the sub-graph will be run again. If it returns the sub-graph will exit.

Return

this builder with the sub-graph appended.

Parameters

subGraph

a lambda that defines the tasks for the sub-graph by adding them to a @ { link Builder .