mirror of
https://github.com/neovim/neovim
synced 2025-07-15 08:41:47 +00:00
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.
25 lines
725 B
Lua
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
|