mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
doc/langref.html.in: update suspend example with @handle();
Tracking Issue #1296 ;
This commit is contained in:
parent
5de92425d5
commit
915e321a23
@ -4733,8 +4733,8 @@ test "resume from suspend" {
|
||||
std.debug.assert(my_result == 2);
|
||||
}
|
||||
async fn testResumeFromSuspend(my_result: *i32) void {
|
||||
suspend |p| {
|
||||
resume p;
|
||||
suspend {
|
||||
resume @handle();
|
||||
}
|
||||
my_result.* += 1;
|
||||
suspend;
|
||||
|
Loading…
Reference in New Issue
Block a user