aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-02-27 18:32:00 +0100
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-02-27 18:32:00 +0100
commitb62b386c141be7c4ba310cceedb4cc656d824c96 (patch)
tree4c752a03ede9122f8f2c7e056a83705f7a096091
parentc0ae89d84d1f784de28a468a1ab3aa2924e7d1a5 (diff)
downloadlanes-b62b386c141be7c4ba310cceedb4cc656d824c96.tar.gz
lanes-b62b386c141be7c4ba310cceedb4cc656d824c96.tar.bz2
lanes-b62b386c141be7c4ba310cceedb4cc656d824c96.zip
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)
-rw-r--r--index.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.html b/index.html
index 6337647..c4a6441 100644
--- a/index.html
+++ b/index.html
@@ -70,7 +70,7 @@
70 </p> 70 </p>
71 71
72 <p> 72 <p>
73 This document was revised on 26-Feb-14, and applies to version <tt>3.9.2</tt>. 73 This document was revised on 27-Feb-14, and applies to version <tt>3.9.3</tt>.
74 </p> 74 </p>
75 </font> 75 </font>
76 </center> 76 </center>
@@ -1038,7 +1038,7 @@
1038<table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> 1038<table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre>
1039 h = lanes.linda( [opt_name, [opt_group]]) 1039 h = lanes.linda( [opt_name, [opt_group]])
1040 1040
1041 [true|lanes.cancel_error] = h:send( [timeout_secs,] key, ...) 1041 [true|lanes.cancel_error] = h:send( [timeout_secs,] [h.null,] key, ...)
1042 1042
1043 [key, val]|[lanes.cancel_error] = h:receive( [timeout_secs,] key [, ...]) 1043 [key, val]|[lanes.cancel_error] = h:receive( [timeout_secs,] key [, ...])
1044 1044
@@ -1071,6 +1071,10 @@
1071 <tt>send()</tt> returns <tt>true</tt> if the sending succeeded, and <tt>false</tt> if the queue limit was met, and the queue did not empty enough during the given timeout. 1071 <tt>send()</tt> returns <tt>true</tt> if the sending succeeded, and <tt>false</tt> if the queue limit was met, and the queue did not empty enough during the given timeout.
1072 <br/> 1072 <br/>
1073 (Since version 3.7.8) <tt>send()</tt> returns <tt>lanes.cancel_error</tt> if interrupted by a soft cancel request. 1073 (Since version 3.7.8) <tt>send()</tt> returns <tt>lanes.cancel_error</tt> if interrupted by a soft cancel request.
1074 <br/>
1075 If no data is provided after the key, <tt>send()</tt> raises an error. Since version 3.9.3, if provided with <tt>linda.null</tt> before the actual key and there is no data to send, <tt>send()</tt> sends a single <tt>nil</tt>.
1076 <br/>
1077 Also, if <tt>linda.null</tt> is sent as data in a linda, it will be read as a <tt>nil</tt>.
1074</p> 1078</p>
1075 1079
1076<p> 1080<p>