diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-11 14:58:04 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-11 14:58:04 +0200 |
commit | 5693bdd8353ae6b623fe5b6210daa72983c220d0 (patch) | |
tree | cbe473b56a4491ea5f18c6b7ffe2b3cd453b34e2 /tests/recursive.lua | |
parent | 3589b8e04ecc7e02674547c4738a54954f6758bc (diff) | |
download | lanes-5693bdd8353ae6b623fe5b6210daa72983c220d0.tar.gz lanes-5693bdd8353ae6b623fe5b6210daa72983c220d0.tar.bz2 lanes-5693bdd8353ae6b623fe5b6210daa72983c220d0.zip |
Adjust lanes.configure() documentation
Diffstat (limited to 'tests/recursive.lua')
-rw-r--r-- | tests/recursive.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/recursive.lua b/tests/recursive.lua index 139f4c8..97b9c5b 100644 --- a/tests/recursive.lua +++ b/tests/recursive.lua | |||
@@ -12,14 +12,10 @@ local function func( depth ) | |||
12 | end | 12 | end |
13 | 13 | ||
14 | local lanes = require "lanes" | 14 | local lanes = require "lanes" |
15 | -- lanes.configure() is available only at the first require() | 15 | local lane = lanes.gen("*", func)( depth+1 ) |
16 | if lanes.configure then | ||
17 | lanes = lanes.configure{with_timers = false} | ||
18 | end | ||
19 | local lane= lanes.gen("*", func)( depth+1 ) | ||
20 | return lane[1] | 16 | return lane[1] |
21 | end | 17 | end |
22 | 18 | ||
23 | local v= func(0) | 19 | local v= func(0) |
24 | assert(v=="done!") | 20 | assert(v=="done!") |
25 | io.stderr:write("\n") | 21 | io.stderr:write("TEST OK\n") |