aboutsummaryrefslogtreecommitdiff
path: root/src/zilch/Env
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-26 15:45:33 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-26 15:45:33 +0100
commitfeeedb0bf31314b182e7bbc135182f6e0bc859b2 (patch)
tree163948cd874729925c2bf57d0927619065d2322d /src/zilch/Env
parent91d9b6992ac0ebee13704a3faefa8fd41a00075e (diff)
update zilch
Diffstat (limited to 'src/zilch/Env')
-rw-r--r--src/zilch/Env/future.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zilch/Env/future.zig b/src/zilch/Env/future.zig
index f829009..43f46c5 100644
--- a/src/zilch/Env/future.zig
+++ b/src/zilch/Env/future.zig
@@ -42,7 +42,10 @@ pub const AnyFuture = union(enum) {
pub fn awaitAny(self: *Self, env: *Env) !Env.Value {
defer self.* = undefined;
switch (self.*) {
- .ignored => @panic("awaited ignored value"),
+ .ignored => {
+ env.flush();
+ return .from({});
+ },
.err => |err| return err,
.resolved => |result| return result,
.unresolved => |result| {