summaryrefslogtreecommitdiff
path: root/main/api/src
diff options
context:
space:
mode:
authorTobias Roeser <le.petit.fou@web.de>2018-12-19 16:46:07 +0100
committerTobias Roeser <le.petit.fou@web.de>2018-12-21 20:19:29 +0100
commit54bb990738fe896e29a652f2e84c3c8a2a8d865b (patch)
tree89e1612669e2c14c71fe0f351263517a468bb961 /main/api/src
parent868ac2f62a8deded2d3a4aec8fde3431ddb798ec (diff)
downloadmill-54bb990738fe896e29a652f2e84c3c8a2a8d865b.tar.gz
mill-54bb990738fe896e29a652f2e84c3c8a2a8d865b.tar.bz2
mill-54bb990738fe896e29a652f2e84c3c8a2a8d865b.zip
Introduced new failFast parameter to Evaluator with default `true`
Added Aborted result type.
Diffstat (limited to 'main/api/src')
-rw-r--r--main/api/src/mill/api/Result.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/api/src/mill/api/Result.scala b/main/api/src/mill/api/Result.scala
index f6579abd..3222a8f9 100644
--- a/main/api/src/mill/api/Result.scala
+++ b/main/api/src/mill/api/Result.scala
@@ -33,6 +33,13 @@ object Result {
}
/**
+ * A task execution was skipped/aborted because of earlier (maybe unrelated) tasks failed and the evaluation was in fail-fast mode.
+ */
+ case object Aborted extends Result[Nothing] {
+ def map[V](f: Nothing => V) = this
+ }
+
+ /**
* A failed task execution.
* @tparam T The result type of the computed task.
*/