Dag

class Dag(val id: String)

A collection of tasks with directional dependencies.

Create a Dag directly and register tasks with addTask.

The Builder.Dag annotation should generally be preferred in user code, where the annotation processor generates the wiring for you. Only use this class directly if you need to do low-level plumbing.

Parameters

id

Dag identifier. Must contain only ASCII alphanumeric characters, dashes, dots, or underscores; must be unique within a Bundle.

See also

Constructors

Link copied to clipboard
constructor(id: String)

Properties

Link copied to clipboard
val id: String

Functions

Link copied to clipboard
fun addTask(id: String, definition: Class<out Task>): Dag

Registers a task with this Dag.