aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/drv-output-substitution-goal.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build/drv-output-substitution-goal.hh')
-rw-r--r--src/libstore/build/drv-output-substitution-goal.hh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstore/build/drv-output-substitution-goal.hh b/src/libstore/build/drv-output-substitution-goal.hh
index 8de4d45dd..f33196665 100644
--- a/src/libstore/build/drv-output-substitution-goal.hh
+++ b/src/libstore/build/drv-output-substitution-goal.hh
@@ -65,20 +65,20 @@ public:
std::optional<ContentAddress> ca = std::nullopt
);
- typedef WorkResult (DrvOutputSubstitutionGoal::*GoalState)(bool inBuildSlot);
+ typedef kj::Promise<Result<WorkResult>> (DrvOutputSubstitutionGoal::*GoalState)(bool inBuildSlot) noexcept;
GoalState state;
- WorkResult init(bool inBuildSlot);
- WorkResult tryNext(bool inBuildSlot);
- WorkResult realisationFetched(bool inBuildSlot);
- WorkResult outPathValid(bool inBuildSlot);
- WorkResult finished();
+ kj::Promise<Result<WorkResult>> init(bool inBuildSlot) noexcept;
+ kj::Promise<Result<WorkResult>> tryNext(bool inBuildSlot) noexcept;
+ kj::Promise<Result<WorkResult>> realisationFetched(bool inBuildSlot) noexcept;
+ kj::Promise<Result<WorkResult>> outPathValid(bool inBuildSlot) noexcept;
+ kj::Promise<Result<WorkResult>> finished() noexcept;
Finished timedOut(Error && ex) override { abort(); };
std::string key() override;
- WorkResult work(bool inBuildSlot) override;
+ kj::Promise<Result<WorkResult>> work(bool inBuildSlot) noexcept override;
JobCategory jobCategory() const override {
return JobCategory::Substitution;