summaryrefslogtreecommitdiff
path: root/meta/3rd
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-29 16:04:49 +0800
committerGitHub <noreply@github.com>2023-03-29 16:04:49 +0800
commit93bd7aa371d361e3d7bc19d9bf31d66821067a9e (patch)
tree93eddc0ca1f49b0b7847accdd84fb7838f1b7241 /meta/3rd
parent1b6a98259997b8b2a2fb78d54eff21ba510b1f70 (diff)
parentce5134ac5a807f2e0f859372b10dd675c8d31fc6 (diff)
downloadlua-language-server-93bd7aa371d361e3d7bc19d9bf31d66821067a9e.zip
Merge pull request #2024 from Gowa2017/master
Add desc of skynet.task api
Diffstat (limited to 'meta/3rd')
-rw-r--r--meta/3rd/skynet/library/skynet.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/3rd/skynet/library/skynet.lua b/meta/3rd/skynet/library/skynet.lua
index f09d996c..0e4d19dd 100644
--- a/meta/3rd/skynet/library/skynet.lua
+++ b/meta/3rd/skynet/library/skynet.lua
@@ -471,7 +471,14 @@ function skynet.stat(what)
end
---返回任务信息
----@param ret any
+---这里说的任务是指:服务发出了请求,但未收到响应,已挂起的协程
+---当参数ret的值为:
+--- nil: 返回挂起的协程数量
+--- "init": 返回 traceback(init_thread)
+--- table: 所有挂起协程的状态信息
+--- number :代表一个会话ID,显示此会话状态信息
+--- thread: 某个协程的信息
+---@param ret nil|number|table|string
function skynet.task(ret)
end