Packages

object Evaluator extends Serializable

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Evaluator
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class Cached(value: Value, valueHash: Int, inputsHash: Int) extends Product with Serializable
    Annotations
    @Scaladoc()
  2. class EvalOrThrow extends AnyRef
  3. case class Evaluated(newResults: Map[Task[_], api.Result[(Any, Int)]], newEvaluated: Seq[Task[_]], cached: Boolean) extends Product with Serializable
  4. class NextCounterMsg extends AnyRef
  5. case class Results(rawValues: Seq[api.Result[Any]], evaluated: api.Strict.Agg[Task[_]], transitive: api.Strict.Agg[Task[_]], failing: MultiBiMap[Either[Task[_], Labelled[_]], Failing[_]], results: Map[Task[_], api.Result[Any]]) extends Product with Serializable
  6. type Terminal = Either[Task[_], Labelled[Any]]

    A terminal or terminal target is some important work unit, that in most cases has a name (Right[Labelled]) or was directly called by the user (Left[Task]).

    A terminal or terminal target is some important work unit, that in most cases has a name (Right[Labelled]) or was directly called by the user (Left[Task]). It's a T, T.worker, T.input, T.source, T.sources, T.persistent

  7. type TerminalGroup = (Terminal, api.Strict.Agg[Task[_]])

    A terminal target with all it's inner tasks.

    A terminal target with all it's inner tasks. To implement a terminal target, one can delegate to other/inner tasks (T.task), those are contained in the 2nd parameter of the tuple.

  8. case class Timing(label: String, millis: Int, cached: Boolean) extends Product with Serializable

Deprecated Type Members

  1. type Paths = EvaluatorPaths
    Annotations
    @deprecated
    Deprecated

    (Since version mill-0.10.0-M3) Use EvaluatorPaths instead

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(home: Path, outPath: Path, externalOutPath: Path, rootModule: BaseModule, baseLogger: ColorLogger): Evaluator
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def classLoaderSig: Seq[(Either[String, URL], Long)]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val currentEvaluator: ThreadLocal[Evaluator]
  9. val defaultEnv: Map[String, String]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def evalOrThrow(evaluator: Evaluator, exceptionFactory: (Results) => Throwable = r => new Exception(s"Failure during task evaluation: ${Evaluator.formatFailing(r)}")): EvalOrThrow

    Evaluate given task(s) and return the successful result(s), or throw an exception.

    Evaluate given task(s) and return the successful result(s), or throw an exception.

    Annotations
    @Scaladoc()
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def formatFailing(evaluated: Results): String
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def plan(goals: api.Strict.Agg[Task[_]]): (MultiBiMap[Terminal, Task[_]], api.Strict.Agg[Task[_]])
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. def writeTimings(timings: Seq[(Either[Task[_], Labelled[_]], Int, Boolean)], outPath: Path): Unit
  28. def writeTracings(tracings: Seq[TraceEvent], outPath: Path): Unit
  29. object Cached extends Serializable
  30. object Timing extends Serializable

Deprecated Value Members

  1. def apply(home: Path, outPath: Path, externalOutPath: Path, rootModule: BaseModule, baseLogger: ColorLogger, classLoaderSig: Seq[(Either[String, URL], Long)] = Evaluator.classLoaderSig, workerCache: Map[Segments, (Int, Any)] = mutable.Map.empty, env: Map[String, String] = Evaluator.defaultEnv, failFast: Boolean = true, threadCount: Option[Int] = Some(1)): Evaluator
    Annotations
    @deprecated
    Deprecated

    (Since version mill 0.10.1) Use other apply and withX methods instead

  2. def evalOrElse[T](evaluator: Evaluator, e: Task[T], default: => T): T

    Evaluate the given task e.

    Evaluate the given task e. In case, the task has no successful result(s), return the default value instead.

    Note: This method has no sensible error management! Errors are just ignored! The following pattern will probably suite your use case better:

    evaluator.evaluate(Agg(task)) match {
      case r if r.failing.items().nonEmpty =>
        throw Exception(s"Failure during task evaluation: ${Evaluator.formatFailing(r)}")
      case r => r.values.asInstanceOf[Seq[YourResultType]]
    }
    Annotations
    @Scaladoc() @deprecated
    Deprecated

    (Since version mill after 0.10.0-M3) This method has no sensible error management and should be avoided. See it's scaladoc for an alternative pattern or use evalOrThrow instead.

  3. def makeSegmentStrings(segments: Segments): Seq[String]
    Annotations
    @deprecated
    Deprecated

    (Since version mill-0.10.0-M3) Use EvaluatorPaths.makeSegmentStrings instead

  4. def resolveDestPaths(workspacePath: Path, segments: Segments, foreignSegments: Option[Segments] = None): EvaluatorPaths
    Annotations
    @deprecated
    Deprecated

    (Since version mill-0.10.0-M3) Use EvaluatorPaths.resolveDestPaths instead

  5. def unapply(evaluator: Evaluator): Option[(Path, Path, Path, BaseModule, ColorLogger, Seq[(Either[String, URL], Long)], Map[Segments, (Int, Any)], Map[String, String], Boolean, Option[Int])]
    Annotations
    @deprecated
    Deprecated

    (Since version mill 0.10.1) Pattern matching not supported with Evaluator

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped