summaryrefslogtreecommitdiff
path: root/script/await.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-08 17:33:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-08 17:33:01 +0800
commit9744eb716f3b521f14331d4769925380c3dc3d84 (patch)
treeee24b9d35e1338bd5c36331fb15be6189db3abbb /script/await.lua
parent5dd886dfe1fa7bbaf8ca898d33e45b04513f6492 (diff)
downloadlua-language-server-9744eb716f3b521f14331d4769925380c3dc3d84.zip
cleanup
Diffstat (limited to 'script/await.lua')
-rw-r--r--script/await.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/await.lua b/script/await.lua
index d8b9ef38..ff840956 100644
--- a/script/await.lua
+++ b/script/await.lua
@@ -245,6 +245,7 @@ function m.disable()
end
--- 注册事件
+---@param callback async fun(ev: string, ...)
function m.watch(callback)
m.watchList[#m.watchList+1] = callback
end