summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/libs/@lua/coroutine.lni10
-rw-r--r--server/locale/en-US/libs/@lua/coroutine.lni3
-rw-r--r--server/locale/zh-CN/libs/@lua/coroutine.lni3
3 files changed, 16 insertions, 0 deletions
diff --git a/server/libs/@lua/coroutine.lni b/server/libs/@lua/coroutine.lni
index be604cb8..0006769f 100644
--- a/server/libs/@lua/coroutine.lni
+++ b/server/libs/@lua/coroutine.lni
@@ -31,6 +31,16 @@ type = 'thread'
[[.returns]]
type = 'boolean'
+['isyieldable Lua 5.4']
+name = isyieldable
+version = 'Lua 5.4'
+[[.args]]
+name = co
+type = thread
+optional = after
+[[.returns]]
+type = boolean
+
[kill]
version = 'Lua 5.4'
[[.args]]
diff --git a/server/locale/en-US/libs/@lua/coroutine.lni b/server/locale/en-US/libs/@lua/coroutine.lni
index 3859ad4e..ed365fe4 100644
--- a/server/locale/en-US/libs/@lua/coroutine.lni
+++ b/server/locale/en-US/libs/@lua/coroutine.lni
@@ -4,6 +4,9 @@ description = 'Creates a new coroutine.'
[isyieldable]
description = 'Returns true when the running coroutine can yield.'
+['isyieldable Lua 5.4']
+description = 'Returns true when the coroutine `co` can yield. The default for `co` is the running coroutine.'
+
[kill]
description = 'Kills coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.'
diff --git a/server/locale/zh-CN/libs/@lua/coroutine.lni b/server/locale/zh-CN/libs/@lua/coroutine.lni
index f2912c70..f3d05ea1 100644
--- a/server/locale/zh-CN/libs/@lua/coroutine.lni
+++ b/server/locale/zh-CN/libs/@lua/coroutine.lni
@@ -4,6 +4,9 @@ description = '创建一个主体函数为 `f` 的新协程。'
[isyieldable]
description = '如果正在运行的协程可以让出,则返回真。'
+['isyieldable Lua 5.4']
+description = '如果协程 `co` 可以让出,则返回真。`co` 默认为正在运行的协程。'
+
[kill]
description = '杀死协程 `co`,关闭它所有等待 *to-be-closed* 的变量,并将协程状态设为 `dead` 。'