blob: c1944b0f3542d1f4535511a0b42beaf08e11f488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
local lanes = require "lanes".configure{ verbose_errors = true} -- with timers enabled
local function foo()
local lanes = lanes -- lanes as upvalue
end
local g = lanes.gen( "*", 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))
|