From fa89fef9db0435b4e2c017a1aa67f1b2467a07da Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 21 Apr 2025 13:54:07 +0200 Subject: Documentation improvements * added an API cheat sheet * improved documentation for lane:cancel() --- docs/index.html | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 88 insertions(+), 10 deletions(-) diff --git a/docs/index.html b/docs/index.html index 116fc0a..3dfac70 100644 --- a/docs/index.html +++ b/docs/index.html @@ -38,6 +38,7 @@ Description · Supported systems · Building and Installing · + API Cheat sheet Embedding

@@ -70,7 +71,7 @@

- This document was revised on 18-Apr-25, and applies to version 4.0.0. + This document was revised on 21-Apr-25, and applies to version 4.0.0.

@@ -169,6 +170,82 @@ + +
+

API Cheat sheet

+ + +

Embedding

@@ -1137,14 +1214,17 @@

- timeout is an optional number >= 0. Defaults to infinite if left unspecified or nil. -
cancel() sends a cancellation request to the lane. -
- First argument is a mode can be one of: +

+ Returns true, lane_h.status if lane was already done (in "done", "error" or "cancelled" status), or the cancellation was fruitful within timeout_secs timeout period.
+ Returns false, "timeout" otherwise. +

+ First argument is a mode. It can be one of: