doc/langref.html.in: update suspend example with @handle();

Tracking Issue #1296 ;
master
kristopher tate 2018-08-02 17:45:35 +09:00
parent 5de92425d5
commit 915e321a23
1 changed files with 2 additions and 2 deletions

View File

@ -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;