blob: e7fcd3a3cfc38889a3dbeb03de047d9524ecb70b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
local lanes = require "lanes".configure{ with_timers = true, verbose_errors = true} -- with timers enabled
local function foo()
local lanes = lanes -- lanes as upvalue
end
local g = lanes.gen( "*", {error_trace_level = "extended"}, foo)
-- this should raise an error as lanes.timer_lane is a Lane (a non-deep full userdata)
local res, err = pcall( g)
print( "Generating lane yielded: ", tostring( res), tostring( err))
|