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.
23 lines
605 B
Lua
23 lines
605 B
Lua
---@meta
|
|
-- luacheck: no unused args
|
|
error('Cannot require a meta file')
|
|
|
|
--- luv_thread_t
|
|
---
|
|
---@class uv.luv_thread_t : userdata
|
|
local thread = {} -- luacheck: no unused
|
|
|
|
--- Returns a boolean indicating whether two threads are the same. This function is
|
|
--- equivalent to the `__eq` metamethod.
|
|
---
|
|
---@param other_thread uv.luv_thread_t
|
|
---@return boolean
|
|
function thread:equal(other_thread) end
|
|
|
|
--- Waits for the `thread` to finish executing its entry function.
|
|
---
|
|
---@return boolean|nil success
|
|
---@return uv.error.message|nil err
|
|
---@return uv.error.name|nil err_name
|
|
function thread:join() end
|