aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libutil/async-collect.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/async-collect.hh b/src/libutil/async-collect.hh
index 9e0b8bad9..1c65ac8d6 100644
--- a/src/libutil/async-collect.hh
+++ b/src/libutil/async-collect.hh
@@ -63,6 +63,9 @@ public:
{
}
+ // oneDone promises capture `this`
+ KJ_DISALLOW_COPY_AND_MOVE(AsyncCollect);
+
kj::Promise<std::optional<Item>> next()
{
if (remaining == 0 && results.empty()) {