diff --git a/patches/patches/088_async5.patch b/patches/patches/088_async5.patch index b9d5a21..a076016 100644 --- a/patches/patches/088_async5.patch +++ b/patches/patches/088_async5.patch @@ -4,8 +4,8 @@ pub fn main() void { var myframe = async getPageTitle("http://example.com"); -- var value = ??? -+ var value = await myframe; +- const value = ??? ++ const value = await myframe; print("{s}\n", .{value}); } diff --git a/patches/patches/089_async6.patch b/patches/patches/089_async6.patch index 4a0687e..3641054 100644 --- a/patches/patches/089_async6.patch +++ b/patches/patches/089_async6.patch @@ -4,10 +4,10 @@ var com_frame = async getPageTitle("http://example.com"); var org_frame = async getPageTitle("http://example.org"); -- var com_title = com_frame; -- var org_title = org_frame; -+ var com_title = await com_frame; -+ var org_title = await org_frame; +- const com_title = com_frame; +- const org_title = org_frame; ++ const com_title = await com_frame; ++ const org_title = await org_frame; print(".com: {s}, .org: {s}.\n", .{ com_title, org_title }); } diff --git a/patches/patches/090_async7.patch b/patches/patches/090_async7.patch index 62ec057..21c7e17 100644 --- a/patches/patches/090_async7.patch +++ b/patches/patches/090_async7.patch @@ -4,8 +4,8 @@ // The main() function can not be async. But we know // getBeef() will not suspend with this particular // invocation. Please make this okay: -- var my_beef = getBeef(0); -+ var my_beef = nosuspend getBeef(0); +- const my_beef = getBeef(0); ++ const my_beef = nosuspend getBeef(0); print("beef? {X}!\n", .{my_beef}); }