From bfdc7a92c4e3e99522abb6d90ef2cbb021f36fc8 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 5 Jun 2025 16:03:22 +0200 Subject: Change lane:join() return values * when no error is raised in the lane, lane:join() now precedes the lane returned values with true * lane body is no longer forced to return something when used with join() * adjusted all relevant unit tests accordingly --- tests/rupval.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/rupval.lua') diff --git a/tests/rupval.lua b/tests/rupval.lua index ad5ad9d..c6743b3 100644 --- a/tests/rupval.lua +++ b/tests/rupval.lua @@ -26,17 +26,17 @@ end local g = lanes.gen( "base", { name = 'auto' }, a) local l = g(7) -local r = l:join() +local _, r = l:join() assert(r == y) print(r) local l = g(8) -local r = l:join() +local _, r = l:join() assert(r == z) print(r) local l = g(9) -local r = l:join() +local _, r = l:join() assert(r == x) print(r) -- cgit v1.2.3-55-g6feb