From 8468f8eba2b85303c7195c80d9a152823c8b6e6c Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 02:26:36 +0200 Subject: [PATCH] :art: Test fork.join --- examples/fork.gw | 4 ++-- tests/tree/fork_join.gw | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) 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(); -- 2.43.0