summaryrefslogtreecommitdiff
path: root/meta/3rd/luv/library/luv_thread_t.lua
diff options
context:
space:
mode:
authorMichael Martin <3277009+flrgh@users.noreply.github.com>2022-12-13 09:23:53 -0800
committerMichael Martin <3277009+flrgh@users.noreply.github.com>2022-12-13 09:23:53 -0800
commitb65fb7a406869e572a80ba9acee1e385922c8cb5 (patch)
tree17eeb8f61919ddc32216d24bb9db110dd459ad5c /meta/3rd/luv/library/luv_thread_t.lua
parenta3835a08fd1736cc7c897f3e5e1779e3c85fc35a (diff)
downloadlua-language-server-b65fb7a406869e572a80ba9acee1e385922c8cb5.zip
add luv library annotations
Diffstat (limited to 'meta/3rd/luv/library/luv_thread_t.lua')
-rw-r--r--meta/3rd/luv/library/luv_thread_t.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/3rd/luv/library/luv_thread_t.lua b/meta/3rd/luv/library/luv_thread_t.lua
new file mode 100644
index 00000000..3d199657
--- /dev/null
+++ b/meta/3rd/luv/library/luv_thread_t.lua
@@ -0,0 +1,20 @@
+---@meta
+
+--- luv_thread_t
+---
+---@class uv.luv_thread_t : userdata
+local thread
+
+--- 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 \ No newline at end of file