diff options
author | Benoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m> | 2019-04-26 12:20:06 +0200 |
---|---|---|
committer | Benoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m> | 2019-04-26 12:20:06 +0200 |
commit | 9c84074c89661cd1e776eff3d4aa5329a2ac9524 (patch) | |
tree | 3c424371c1f21f4dee493793c8316059bf8217c6 /tests/timer.lua | |
parent | 32f8cdfc73ed90dcf88ffcf4bfc1a3e4d5a69e6c (diff) | |
download | lanes-9c84074c89661cd1e776eff3d4aa5329a2ac9524.tar.gz lanes-9c84074c89661cd1e776eff3d4aa5329a2ac9524.tar.bz2 lanes-9c84074c89661cd1e776eff3d4aa5329a2ac9524.zip |
Lane cancellation rework
opt.cancelstep is gone, hook is installed by lane:cancel() if requested
lane:cancel() rework (see doc)
Diffstat (limited to 'tests/timer.lua')
-rw-r--r-- | tests/timer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/timer.lua b/tests/timer.lua index 805d85c..ec23cee 100644 --- a/tests/timer.lua +++ b/tests/timer.lua | |||
@@ -100,5 +100,5 @@ PRINT "...making sure no ticks are coming..." | |||
100 | local k,v= linda:receive( 10, T1,T2 ) -- should not get any | 100 | local k,v= linda:receive( 10, T1,T2 ) -- should not get any |
101 | assert(v==nil) | 101 | assert(v==nil) |
102 | 102 | ||
103 | lanes.timer_lane:cancel() | 103 | lanes.timer_lane:cancel() -- hard cancel, 0 timeout |
104 | print (lanes.timer_lane[1], lanes.timer_lane[2]) \ No newline at end of file | 104 | print (lanes.timer_lane[1], lanes.timer_lane[2]) \ No newline at end of file |