style: cleanup & annotations

This commit is contained in:
Folke Lemaitre 2022-11-28 07:36:32 +01:00
parent 02f5528aa3
commit 9179c0a14d
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 42 additions and 38 deletions

View file

@ -55,6 +55,7 @@ function M.spawn(cmd, opts)
return
end
---@param data? string
local function on_output(err, data)
assert(not err, err)
@ -76,15 +77,4 @@ function M.spawn(cmd, opts)
return handle
end
-- FIXME: can be removed?
function M.all_done(slot0)
for slot4, slot5 in ipairs(slot0) do
if slot5 and not slot5:is_closing() then
return false
end
end
return true
end
return M