Action

sbt.internal.Action
See theAction companion object
enum Action[A]

Defines a task computation

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case Pure[A]
case Mapped[A, Tup]
case FlatMapped[A, Tup]
case DependsOn[A]
case Join[A, U]
case Selected[A1, A2]
Show all

Members list

Type members

Enum entries

final case class DependsOn[A](in: Task[A], deps: Seq[Task[_]]) extends Action[A]

A computation in that requires other tasks deps to be evaluated first.

A computation in that requires other tasks deps to be evaluated first.

Attributes

final case class FlatMapped[A, Tup <: Tuple](in: Map[Tup, Task], f: Map[Tup, Result] => Task[A]) extends Action[A]

Computes another task to evaluate based on results from evaluating other tasks.

Computes another task to evaluate based on results from evaluating other tasks.

Attributes

final case class Join[A, U](in: Seq[Task[U]], f: Seq[Result[U]] => Either[Task[A], A]) extends Action[A]

A computation that operates on the results of a homogeneous list of other tasks. It can either return another task to be evaluated or the final value.

A computation that operates on the results of a homogeneous list of other tasks. It can either return another task to be evaluated or the final value.

Attributes

final case class Mapped[A, Tup <: Tuple](in: Map[Tup, Task], f: Map[Tup, Result] => A) extends Action[A]

Applies a function to the result of evaluating a heterogeneous list of other tasks.

Applies a function to the result of evaluating a heterogeneous list of other tasks.

Attributes

final case class Pure[A](f: () => A, inline: Boolean) extends Action[A]

A direct computation of a value. If inline is true, f will be evaluated on the scheduler thread without the overhead of normal scheduling when possible. This is intended as an optimization for already evaluated values or very short pure computations.

A direct computation of a value. If inline is true, f will be evaluated on the scheduler thread without the overhead of normal scheduling when possible. This is intended as an optimization for already evaluated values or very short pure computations.

Attributes

final case class Selected[A1, A2](fab: Task[Either[A1, A2]], fin: Task[A1 => A2]) extends Action[A2]

A computation that conditionally falls back to a second transformation. This can be used to encode if conditions.

A computation that conditionally falls back to a second transformation. This can be used to encode if conditions.

Attributes