From 437759ddf0ce7e6dc5ed4944e033ef04674de430 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 27 Feb 2014 18:32:00 +0100 Subject: linda:send() improvements * Bumped version to 3.9.3 * new exposed variable linda.null that exposes the internal NIL_SENTINEL marker * linda:send() interprets send key linda.null as authorization to silently send a single nil when not provided with anything to send (useful when sending results of a function that can return nothing) --- docs/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index 6337647..c4a6441 100644 --- a/docs/index.html +++ b/docs/index.html @@ -70,7 +70,7 @@

- This document was revised on 26-Feb-14, and applies to version 3.9.2. + This document was revised on 27-Feb-14, and applies to version 3.9.3.

@@ -1038,7 +1038,7 @@
 	h = lanes.linda( [opt_name, [opt_group]])
 
-	[true|lanes.cancel_error] = h:send( [timeout_secs,] key, ...)
+	[true|lanes.cancel_error] = h:send( [timeout_secs,] [h.null,] key, ...)
 
 	[key, val]|[lanes.cancel_error] = h:receive( [timeout_secs,] key [, ...])
 
@@ -1071,6 +1071,10 @@
 	send() returns true if the sending succeeded, and false if the queue limit was met, and the queue did not empty enough during the given timeout.
 	
(Since version 3.7.8) send() returns lanes.cancel_error if interrupted by a soft cancel request. +
+ If no data is provided after the key, send() raises an error. Since version 3.9.3, if provided with linda.null before the actual key and there is no data to send, send() sends a single nil. +
+ Also, if linda.null is sent as data in a linda, it will be read as a nil.

-- cgit v1.2.3-55-g6feb