diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2026-02-26 10:17:36 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2026-02-26 10:17:36 +0100 |
| commit | 6b8c83b3bc44b0a1bc186f58de0fea6dfc214c4b (patch) | |
| tree | cedc4e5c7ded4393e20acdb932d82ffa1b8961f0 /docs | |
| parent | 469bc8451db8078dca6cac4350cf874c47cef5f2 (diff) | |
| download | lanes-6b8c83b3bc44b0a1bc186f58de0fea6dfc214c4b.tar.gz lanes-6b8c83b3bc44b0a1bc186f58de0fea6dfc214c4b.tar.bz2 lanes-6b8c83b3bc44b0a1bc186f58de0fea6dfc214c4b.zip | |
Improve cancel_test() documentation and unit test
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/index.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/index.html b/docs/index.html index 452dcfa..3dc2b61 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -1294,10 +1294,14 @@ | |||
| 1294 | This means the execution of the lane will resume although the operation has not completed, to give the lane a chance to detect cancellation (even in the case the code waits on a <a href="#lindas">linda</a> with infinite timeout). | 1294 | This means the execution of the lane will resume although the operation has not completed, to give the lane a chance to detect cancellation (even in the case the code waits on a <a href="#lindas">linda</a> with infinite timeout). |
| 1295 | <br /> | 1295 | <br /> |
| 1296 | The code should be able to handle this situation appropriately if required (in other words, it should gracefully handle the fact that it didn't receive the expected values). | 1296 | The code should be able to handle this situation appropriately if required (in other words, it should gracefully handle the fact that it didn't receive the expected values). |
| 1297 | <br /> | ||
| 1298 | It is also possible to manually test for cancel requests with <tt>cancel_test()</tt>. | ||
| 1299 | </p> | 1297 | </p> |
| 1300 | 1298 | ||
| 1299 | <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%"><tr><td><pre> | ||
| 1300 | false|"soft"|"hard" = cancel_test() -- inside the lane | ||
| 1301 | </pre></td></tr></table> | ||
| 1302 | <p> | ||
| 1303 | Lanes installs the function <tt>cancel_test()</tt> in each created lane to manually test for cancel requests. | ||
| 1304 | </p> | ||
| 1301 | 1305 | ||
| 1302 | <!-- finalizers +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | 1306 | <!-- finalizers +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> |
| 1303 | <hr/> | 1307 | <hr/> |
