Files
neovim/runtime/lua/uv/_meta/uv_process_t.lua
Christian Clason 0ee5a4d481 feat(meta): vendor luv meta files
Problem: No type information for `vim.uv`.

Solution: Vendor https://github.com/LuaCATS/luv (which is what
luals bundles). This will allow other tooling to work out-of-the-box and
make these files available to users and plugins without the need for
`lazydev.nvim` etc.
2025-04-10 09:13:13 +02:00

25 lines
725 B
Lua

---@meta
-- luacheck: no unused args
error('Cannot require a meta file')
--- Process handles will spawn a new process and allow the user to control it and
--- establish communication channels with it using streams.
---
---@class uv.uv_process_t : uv.uv_handle_t
local process = {} -- luacheck: no unused
--- Returns the handle's pid.
---
---@return integer pid
function process:get_pid() end
--- Sends the specified signal to the given process handle.
---
--- Check the documentation on `uv_signal_t` for signal support, specially on Windows.
---
---@param signum integer|string
---@return 0|nil success
---@return uv.error.message|nil err
---@return uv.error.name|nil err_name
function process:kill(signum) end