aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/event/group.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/std/event/group.zig b/lib/std/event/group.zig
index 77dd2cd1aa..0f6a892594 100644
--- a/lib/std/event/group.zig
+++ b/lib/std/event/group.zig
@@ -66,11 +66,10 @@ pub fn Group(comptime ReturnType: type) type {
node.* = AllocStack.Node{
.next = undefined,
.data = Node{
- .handle = frame,
- .bytes = @sliceToBytes((*[1]@Frame(func))(frame)[0..]),
+ .handle = @asyncCall(frame, {}, func, args),
+ .bytes = std.mem.asBytes(frame),
},
};
- frame.* = async func(args);
self.alloc_stack.push(node);
}