Task

mill.api.Task
See theTask companion object
sealed abstract class Task[+T] extends Ops[T], Applyable[Task, T], TaskApi[T]

Models a single node in the Mill build graph, with a list of inputs and a single output of type T.

Generally not instantiated manually, but instead constructed via the Task.apply & similar macros.

Attributes

Companion
object
Source
Task.scala
Graph
Supertypes
trait TaskApi[T]
trait Applyable[Task, T]
class Ops[T]
class Object
trait Matchable
class Any
Show all
Known subtypes
class Anon[T]
trait Named[T]
class Command[T]
trait Simple[T]
class Computed[T]
class Stub[T]
class Input[T]
class Source
class Sources
class Worker[T]
Show all

Members list

Value members

Abstract methods

def evaluate(args: TaskCtx): Result[T]

Evaluate this task

Evaluate this task

Attributes

Source
Task.scala

Concrete methods

def persistent: Boolean

Whether or not this Task deletes the Task.dest folder between runs

Whether or not this Task deletes the Task.dest folder between runs

Attributes

Source
Task.scala
def sideHash: Int

Even if this task's inputs did not change, does it need to re-evaluate anyway?

Even if this task's inputs did not change, does it need to re-evaluate anyway?

Attributes

Source
Task.scala

Inherited methods

def apply(): T

Attributes

Inherited from:
Applyable
Source
Applicative.scala
def filter(f: T => Boolean): Task[T]

Attributes

Inherited from:
Ops
Source
Task.scala
def map[V](f: T => V): Task[V]

Attributes

Inherited from:
Ops
Source
Task.scala
def withFilter(f: T => Boolean): Task[T]

Attributes

Inherited from:
Ops
Source
Task.scala
def zip[V](other: Task[V]): Task[(T, V)]

Attributes

Inherited from:
Ops
Source
Task.scala

Abstract fields

val inputs: Seq[Task[_]]

What other tasks does this task depend on?

What other tasks does this task depend on?

Attributes

Source
Task.scala