diff options
author | fesily <fesil@foxmail.com> | 2022-07-08 15:38:57 +0800 |
---|---|---|
committer | fesily <fesil@foxmail.com> | 2022-07-08 15:38:57 +0800 |
commit | 69051e1a47006ebd24dd47fc8448d2f7b7e6ef57 (patch) | |
tree | 5ff288556080585411ef451dd4eac51275938189 | |
parent | 4c71c56f925246618cce854ab9773311a7812055 (diff) | |
download | lua-language-server-69051e1a47006ebd24dd47fc8448d2f7b7e6ef57.zip |
meta: openresty add api run_worker_thread
-rw-r--r-- | meta/3rd/OpenResty/library/ngx.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/3rd/OpenResty/library/ngx.lua b/meta/3rd/OpenResty/library/ngx.lua index 60102245..9a35fcc4 100644 --- a/meta/3rd/OpenResty/library/ngx.lua +++ b/meta/3rd/OpenResty/library/ngx.lua @@ -4245,5 +4245,18 @@ ngx.resp = {} ---@return string|'"truncated"' error function ngx.resp.get_headers(max_headers, raw) end +---@alias ngx.thread.arg boolean|number|integer|string|lightuserdata|table + +---@param threadpool string +---@param module_name string +---@param func_name string +---@param arg1? ngx.thread.arg +---@param arg2? ngx.thread.arg +---@param ... ngx.thread.arg +---@return boolean ok +---@return ngx.thread.arg? result_or_error +---@return ... +function ngx.run_worker_thread(threadpool, module_name, func_name, arg1, arg2, ...) +end return ngx |