aboutsummaryrefslogtreecommitdiff
path: root/src/z/Env/Future.zig
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2026-10-05 16:58:46 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2026-10-05 16:58:46 +0200
commit5117cd94bdcc5b76ce4cb428b5ea47a6c5ab6ecf (patch)
treed4437942d58878d0622da5d924a5320e02957bcc /src/z/Env/Future.zig
parent7797e27193ea74914cfdb7ef6cb06af8015d4714 (diff)
wasm implement callMethod
Diffstat (limited to 'src/z/Env/Future.zig')
-rw-r--r--src/z/Env/Future.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/z/Env/Future.zig b/src/z/Env/Future.zig
index 17266b9..2a74936 100644
--- a/src/z/Env/Future.zig
+++ b/src/z/Env/Future.zig
@@ -5,7 +5,7 @@ const Self = @This();
result: *Env.Value,
-pub fn await(self: *Self, env: *Env, comptime kind: Env.Value.Kind) kind.asType() {
+pub fn await(self: *const Self, env: *Env, comptime kind: Env.Value.Kind) kind.asType() {
const result = self.awaitAny(env);
std.debug.assert(kind == result.kind);
@@ -16,7 +16,7 @@ pub fn await(self: *Self, env: *Env, comptime kind: Env.Value.Kind) kind.asType(
};
}
-pub fn awaitAny(self: *Self, env: *Env) Env.Value {
+pub fn awaitAny(self: *const Self, env: *Env) Env.Value {
defer env.pool.destroy(self.result);
if (self.result.kind != .uninit) {