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 --- docs/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/index.html') diff --git a/docs/index.html b/docs/index.html index be8ad7f..ab8aed2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -71,7 +71,7 @@

- This document was revised on 07-May-25, and applies to version 4.0.0. + This document was revised on 05-Jun-25, and applies to version 4.0.0.

@@ -1156,7 +1156,7 @@

-	[...]|[nil,err,stack_tbl]= lane_h:join([timeout])
+	[true, ...]|[nil,err,stack_tbl]= lane_h:join([timeout])
 

@@ -1174,7 +1174,7 @@

  • nil, "killed" if forcefully killed.
  • -
  • The return values of the lane function. If the first return value is nil (or there is no return value), an error is raised, to make sure you can tell timeout and error cases apart from successful return.
  • +
  • true [, returned-values]: The return values of the lane function.
  • If the lane handle obtained from lanes.gen() is to-be-closed, closing the value will cause a call to join(). Since it is implicit, the lane body isn't forced to return non-nil in that case.

    -- cgit v1.2.3-55-g6feb