aboutsummaryrefslogtreecommitdiff
path: root/docs
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
commit437759ddf0ce7e6dc5ed4944e033ef04674de430 (patch)
treefc4a00832167b6f2735bdd3749965d85d00ab068 /docs
parentcf2d7438f0e6e56a7c5dd78dfde7639eac571d98 (diff)
downloadlanes-437759ddf0ce7e6dc5ed4944e033ef04674de430.tar.gz
lanes-437759ddf0ce7e6dc5ed4944e033ef04674de430.tar.bz2
lanes-437759ddf0ce7e6dc5ed4944e033ef04674de430.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)
Diffstat (limited to 'docs')
-rw-r--r--docs/index.html8
1 files changed, 6 insertions, 2 deletions
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 @@
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>