From b8a639e79836f916286c8d55e53a263cd782e8ab Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 13 Apr 2026 19:08:24 -0700 Subject: 095_quiz_async: Add missing Bug 4 --- exercises/095_quiz_async.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'exercises/095_quiz_async.zig') diff --git a/exercises/095_quiz_async.zig b/exercises/095_quiz_async.zig index b116fc9..7c06168 100644 --- a/exercises/095_quiz_async.zig +++ b/exercises/095_quiz_async.zig @@ -97,9 +97,8 @@ pub fn main(init: std.process.Init) !void { // there's no more data coming. queue.close(io); - // Wait for the collector to drain the remaining queue. - _ = collector_future.await(io); - // _ = collector_future.???(io); + // Bug 4: How do we wait for the collector to drain the remaining queue? + _ = collector_future.???(io); // Now write the garden report. This is critical — it must // NOT be interrupted, even if something tries to cancel us! -- cgit v1.2.3