Commit 915e321a23

kristopher tate <kt@connectfree.co.jp>
2018-08-02 10:45:35
doc/langref.html.in: update suspend example with @handle();
Tracking Issue #1296 ;
1 parent 5de9242
Changed files (1)
doc/langref.html.in
@@ -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;