mirror of
https://github.com/ziglang/zig.git
synced 2026-02-07 06:57:13 +00:00
test/cases/coroutines.zig: update suspend to use @handle();
Tracking Issue #1296 ;
This commit is contained in:
parent
915e321a23
commit
9bed23f8b7
@ -249,8 +249,8 @@ test "break from suspend" {
|
||||
std.debug.assert(my_result == 2);
|
||||
}
|
||||
async fn testBreakFromSuspend(my_result: *i32) void {
|
||||
suspend |p| {
|
||||
resume p;
|
||||
suspend {
|
||||
resume @handle();
|
||||
}
|
||||
my_result.* += 1;
|
||||
suspend;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user