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

Tracking Issue #1296 ;
This commit is contained in:
kristopher tate 2018-08-02 17:45:35 +09:00
parent 5de92425d5
commit 915e321a23

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;