summaryrefslogtreecommitdiff
path: root/server/locale
diff options
context:
space:
mode:
Diffstat (limited to 'server/locale')
-rw-r--r--server/locale/en-US/libs/@lua/coroutine.lni3
-rw-r--r--server/locale/zh-CN/libs/@lua/coroutine.lni3
2 files changed, 6 insertions, 0 deletions
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` 。'