]> Nishi Git Mirror - gwion.git/commitdiff
:art: Test fork.join
authorfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 11 Oct 2019 00:26:36 +0000 (02:26 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 11 Oct 2019 00:26:41 +0000 (02:26 +0200)
examples/fork.gw
tests/tree/fork_join.gw

index 1e1e76f43999331f8d93d0a593f1ad3c75c3c072..e423f54dc6df7faf84dd64cd661d9d384bca93b0 100644 (file)
@@ -5,7 +5,7 @@ fork {
   <<< "stop" >>>;
 } @=> Fork @f;
 
-1 => f.cancel;
+1 => f.set_cancel;
 2::samp => now;
-0 => f.cancel;
+0 => f.set_cancel;
 f.join();
index 9b43df2bbf973ace8c495b95173c5ab4cb484a7b..6e8dfdba640475a1dfe4442ee29e05582dda5f51 100644 (file)
@@ -1,5 +1,3 @@
-fork { <<< __func__ >>>; hour => now; };#! @=> Fork @f;
-#!fork me.id() @=> Fork @f;
-#!spork { <<< __func__ >>>; } @=> Shred @s;
-#!second => now;
-#!f.join();
+fork { <<< __func__ >>>; } @=> Fork @f;
+second => now;
+f.join();