object Evaluator extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Evaluator
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class Cached(value: Value, valueHash: Int, inputsHash: Int) extends Product with Serializable
- class EvalOrThrow extends AnyRef
- case class Evaluated(newResults: Map[Task[_], api.Result[(Any, Int)]], newEvaluated: Seq[Task[_]], cached: Boolean) extends Product with Serializable
- class NextCounterMsg extends AnyRef
- 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
- case class Timing(label: String, millis: Int, cached: Boolean) extends Product with Serializable
Deprecated Type Members
- type Paths = EvaluatorPaths
- Annotations
- @deprecated
- Deprecated
(Since version mill-0.10.0-M3) Use EvaluatorPaths instead
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def classLoaderSig: Seq[(Either[String, URL], Long)]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val currentEvaluator: ThreadLocal[Evaluator]
- val defaultEnv: Map[String, String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatFailing(evaluated: Results): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def plan(rootModule: BaseModule, goals: api.Strict.Agg[Task[_]]): (MultiBiMap[Either[Task[Any], Labelled[Any]], Task[_]], api.Strict.Agg[Task[_]])
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def writeTimings(timings: Seq[(Either[Task[_], Labelled[_]], Int, Boolean)], outPath: Path): Unit
- def writeTracings(tracings: Seq[TraceEvent], outPath: Path): Unit
- object Cached extends Serializable
- object Timing extends Serializable
Deprecated Value Members
- 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 thedefault
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
- @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.
- def makeSegmentStrings(segments: Segments): Seq[String]
- Annotations
- @deprecated
- Deprecated
(Since version mill-0.10.0-M3) Use EvaluatorPaths.makeSegmentStrings instead
- 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