append

Adds a new stage to the graph and makes it depend on the last stage that was added if any.

This is convenient for straightforward stage graphs to avoid having to pass around references to stages in order to use .

If no stages have been added so far, this is synonymous with calling .

Return

the newly created stage.

Parameters

init

See

@Nonnull()
abstract StageExecution append(Consumer<StageExecutioninit)
abstract void append(StageExecution stage)