This commit is contained in:
Adam Millerchip 2022-01-03 00:34:05 +09:00
parent f7f02e83fe
commit 9c269dedcd
1 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ pub fn main() void {
var frame = async suspendable(); var frame = async suspendable();
print("X", .{}); print("D", .{});
resume frame; resume frame;
@ -25,11 +25,11 @@ pub fn main() void {
} }
fn suspendable() void { fn suspendable() void {
print("X", .{}); print("B", .{});
suspend { suspend {
print("X", .{}); print("C", .{});
} }
print("X", .{}); print("E", .{});
} }