const std = @import("std"); var global_frame1: anyframe = undefined; var global_frame2: anyframe = undefined; pub fn main() anyerror!void { var foo_frame = async foo(); resume global_frame1; resume global_frame2; const result = noasync await foo_frame; std.debug.warn("{}\n", .{result}); } fn foo() i32 { var frame1 = async bar(3); var frame2 = async baz(4); return await frame1 + await frame2; } fn bar(x: i32) i32 { global_frame1 = @frame(); suspend; return x + 1; } fn baz(x: i32) i32 { global_frame2 = @frame(); suspend; return x + 2; }