aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/goal.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build/goal.hh')
-rw-r--r--src/libstore/build/goal.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/build/goal.hh b/src/libstore/build/goal.hh
index 502ba2a7d..189505308 100644
--- a/src/libstore/build/goal.hh
+++ b/src/libstore/build/goal.hh
@@ -1,9 +1,11 @@
#pragma once
///@file
+#include "result.hh"
#include "types.hh"
#include "store-api.hh"
#include "build-result.hh"
+#include <kj/async.h>
namespace nix {
@@ -161,7 +163,7 @@ public:
trace("goal destroyed");
}
- virtual WorkResult work(bool inBuildSlot) = 0;
+ virtual kj::Promise<Result<WorkResult>> work(bool inBuildSlot) noexcept = 0;
virtual void waiteeDone(GoalPtr waitee) { }