Browse Source

test5 upd

221V 2 weeks ago
parent
commit
04e49bf6ad
1 changed files with 6 additions and 2 deletions
  1. 6 2
      vtest2/source/test5.d

+ 6 - 2
vtest2/source/test5.d

@@ -18,8 +18,12 @@ void foo(){
 
 void test5_spawner(){
   auto f = new Fiber(&foo);
-  f.call(); // Hello
-  f.call(); // World
+  //f.call(); // Hello
+  //f.call(); // World
+  
+  while(f.state != Fiber.State.TERM){
+    f.call();
+  }
 }
 
 /*