From: fennecdjay Date: Fri, 11 Oct 2019 00:26:36 +0000 (+0200) Subject: :art: Test fork.join X-Git-Tag: nightly~2186 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=8468f8eba2b85303c7195c80d9a152823c8b6e6c;p=gwion.git :art: Test fork.join --- diff --git a/examples/fork.gw b/examples/fork.gw index 1e1e76f4..e423f54d 100644 --- a/examples/fork.gw +++ b/examples/fork.gw @@ -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(); diff --git a/tests/tree/fork_join.gw b/tests/tree/fork_join.gw index 9b43df2b..6e8dfdba 100644 --- a/tests/tree/fork_join.gw +++ b/tests/tree/fork_join.gw @@ -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();