diff options
author | Michael Martin <3277009+flrgh@users.noreply.github.com> | 2022-12-13 09:23:53 -0800 |
---|---|---|
committer | Michael Martin <3277009+flrgh@users.noreply.github.com> | 2022-12-13 09:23:53 -0800 |
commit | b65fb7a406869e572a80ba9acee1e385922c8cb5 (patch) | |
tree | 17eeb8f61919ddc32216d24bb9db110dd459ad5c /meta/3rd/luv/library/luv_work_ctx_t.lua | |
parent | a3835a08fd1736cc7c897f3e5e1779e3c85fc35a (diff) | |
download | lua-language-server-b65fb7a406869e572a80ba9acee1e385922c8cb5.zip |
add luv library annotations
Diffstat (limited to 'meta/3rd/luv/library/luv_work_ctx_t.lua')
-rw-r--r-- | meta/3rd/luv/library/luv_work_ctx_t.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/3rd/luv/library/luv_work_ctx_t.lua b/meta/3rd/luv/library/luv_work_ctx_t.lua new file mode 100644 index 00000000..790db995 --- /dev/null +++ b/meta/3rd/luv/library/luv_work_ctx_t.lua @@ -0,0 +1,17 @@ +---@meta + +--- luv_work_ctx_t +--- +---@class uv.luv_work_ctx_t : userdata +local work_ctx + +--- Queues a work request which will run `work_callback` in a new Lua state in a +--- thread from the threadpool with any additional arguments from `...`. Values +--- returned from `work_callback` are passed to `after_work_callback`, which is +--- called in the main loop thread. +--- +---@param ... uv.threadargs +---@return boolean|nil success +---@return uv.error.message|nil err +---@return uv.error.name|nil err_name +function work_ctx:queue(...) end
\ No newline at end of file |