blob: f0ec3d43e7fef71de2d65f58a4cde21580cf90e7 (
plain)
1
2
3
4
5
6
7
|
local lanes = require 'lanes'.configure{with_timers = false}
local l = lanes.linda{name = 'gleh'}
-- io.stdin is a full userdata that was registered by lanes when it was required and scanned the global environment
l:set('yo', io.stdin)
local n, stdin_out = l:get('yo')
assert(n == 1 and stdin_out == io.stdin, tostring(stdin_out) .. " ~= " .. tostring(io.stdin))
|