diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-03-29 16:04:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-29 16:04:49 +0800 |
commit | 93bd7aa371d361e3d7bc19d9bf31d66821067a9e (patch) | |
tree | 93eddc0ca1f49b0b7847accdd84fb7838f1b7241 /meta | |
parent | 1b6a98259997b8b2a2fb78d54eff21ba510b1f70 (diff) | |
parent | ce5134ac5a807f2e0f859372b10dd675c8d31fc6 (diff) | |
download | lua-language-server-93bd7aa371d361e3d7bc19d9bf31d66821067a9e.zip |
Merge pull request #2024 from Gowa2017/master
Add desc of skynet.task api
Diffstat (limited to 'meta')
-rw-r--r-- | meta/3rd/skynet/library/skynet.lua | 9 |
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 |