From e7fa2439c8f328ab146037628bce30894e36a32c Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 10 Jun 2024 10:59:08 +0200 Subject: Unify the value returned by linda:deep() and the string conversion of an unnamed Linda --- docs/index.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/index.html b/docs/index.html index dd7854a..60f4970 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1213,18 +1213,18 @@
 	h = lanes.linda([opt_name, [opt_group]])
 
-	[true|lanes.cancel_error] = h:send([timeout_secs,] key, ...)
+	true|lanes.cancel_error = h:send([timeout_secs,] key, ...)
 
 	key, val = h:receive([timeout_secs,] key [, key...])
 
 	key, val [, val...] = h:receive(timeout, h.batched, key, n_uint_min[, n_uint_max])
 
-	[true|lanes.cancel_error] = h:limit(key, n_uint)
+	true|lanes.cancel_error = h:limit(key, n_uint)
 

Converting the Linda to a string will yield the provided name prefixed by "Linda: ".
- If opt_name is omitted, it will evaluate to an hexadecimal number uniquely representing that Linda.
+ If opt_name is omitted, it will evaluate to an hexadecimal number uniquely representing that Linda when the Linda is converted to a string. The value is the same as returned by linda:deep().
If opt_name is "auto", Lanes will try to construct a name from the source location that called lanes.linda(). If that fails, the Linda name will be "<unresolved>".

@@ -1331,6 +1331,14 @@ If not void, the lane's cancel status overrides the Linda's cancel status.

+
+	light userdata = h:deep()
+
+ +

+ Returns a light userdata that uniquely represents the Linda. The stored value is the same as what is seen when converting an unnamed Linda to a string. +

+

Granularity of using Lindas

-- cgit v1.2.3-55-g6feb