diff options
| author | Benoit Germain <bnt.germain@gmail.com> | 2012-06-24 15:12:32 +0200 |
|---|---|---|
| committer | Benoit Germain <bnt.germain@gmail.com> | 2012-06-24 15:12:32 +0200 |
| commit | 14acdd61de1e3679cb731713c6e5aba274fa8869 (patch) | |
| tree | bce1234e0a956abbd8fb5b1f383fe7e10b2881ed /docs | |
| parent | fc20e54ac64569ad53118084a2b0615f84eed5b1 (diff) | |
| download | lanes-14acdd61de1e3679cb731713c6e5aba274fa8869.tar.gz lanes-14acdd61de1e3679cb731713c6e5aba274fa8869.tar.bz2 lanes-14acdd61de1e3679cb731713c6e5aba274fa8869.zip | |
fix issue #25
* lanes.timer() accepts a first_secs=nil to stop a timer
* timer lane catches errors and prints them
* fixed some typos in manual
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/index.html b/docs/index.html index 1ae1855..52ba852 100644 --- a/docs/index.html +++ b/docs/index.html | |||
| @@ -56,7 +56,7 @@ | |||
| 56 | 56 | ||
| 57 | <p><br/><font size="-1"><i>Copyright © 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.</i> | 57 | <p><br/><font size="-1"><i>Copyright © 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.</i> |
| 58 | <br>Lua Lanes is published under the same <A HREF="http://en.wikipedia.org/wiki/MIT_License">MIT license</A> as Lua 5.1. | 58 | <br>Lua Lanes is published under the same <A HREF="http://en.wikipedia.org/wiki/MIT_License">MIT license</A> as Lua 5.1. |
| 59 | </p><p>This document was revised on 17-Feb-11, and applies to version 3.1.3 | 59 | </p><p>This document was revised on 23-Jun-12, and applies to version 3.1.4 |
| 60 | </font></p> | 60 | </font></p> |
| 61 | 61 | ||
| 62 | </center> | 62 | </center> |
| @@ -509,7 +509,7 @@ It is also possible to manually test for cancel requests with <tt>cancel_test()< | |||
| 509 | <table border=1 bgcolor="#E0E0FF" cellpadding=10><tr><td> | 509 | <table border=1 bgcolor="#E0E0FF" cellpadding=10><tr><td> |
| 510 | <code>set_finalizer( finalizer_func )</code> | 510 | <code>set_finalizer( finalizer_func )</code> |
| 511 | <br/><br/> | 511 | <br/><br/> |
| 512 | <code>void= finalizer_func( [error] )</code> | 512 | <code>void= finalizer_func( [err, stack_tbl] )</code> |
| 513 | </table> | 513 | </table> |
| 514 | 514 | ||
| 515 | <p>The <tt>error</tt> call is used for throwing exceptions in Lua. What Lua | 515 | <p>The <tt>error</tt> call is used for throwing exceptions in Lua. What Lua |
| @@ -734,7 +734,7 @@ events to a common Linda, but... :).</font> | |||
| 734 | </table> | 734 | </table> |
| 735 | 735 | ||
| 736 | <p> | 736 | <p> |
| 737 | Timers are implemented as a lane. They can be disabled by passing <tt>"NO_TIMERS"</tt> | 737 | Timers are implemented as a lane. They can be disabled by setting <tt>"with_timers"</tt> to <tt>nil</tt> or <tt>false</tt> |
| 738 | to <tt>lanes.configure()</tt>. | 738 | to <tt>lanes.configure()</tt>. |
| 739 | </p> | 739 | </p> |
| 740 | <p> | 740 | <p> |
| @@ -748,7 +748,7 @@ Once a timer expires, the <tt>key</tt> is set with the current time | |||
| 748 | The key can be waited upon using the regular Linda <tt>:receive()</tt> | 748 | The key can be waited upon using the regular Linda <tt>:receive()</tt> |
| 749 | method. | 749 | method. |
| 750 | </p><p> | 750 | </p><p> |
| 751 | A timer can be stopped simply by <tt>first_secs=0</tt> and no period. | 751 | A timer can be stopped simply with <tt>first_secs=0|nil</tt> and no period. |
| 752 | </p><p> | 752 | </p><p> |
| 753 | 753 | ||
| 754 | <table border=1 bgcolor="#FFFFE0" width=500><tr><td> | 754 | <table border=1 bgcolor="#FFFFE0" width=500><tr><td> |
