mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-11-19 11:48:21 +01:00
17 lines
230 B
Lua
17 lines
230 B
Lua
function sink.table(t)
|
|
t = t or {}
|
|
local f = function(chunk, err)
|
|
if chunk then table.insert(t, chunk) end
|
|
return 1
|
|
end
|
|
return f, t
|
|
end
|
|
|
|
local function null()
|
|
return 1
|
|
end
|
|
|
|
function sink.null()
|
|
return null
|
|
end
|