diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-11 09:47:01 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-11 09:47:01 +0800 |
commit | 0c1d4ff0f246c326e036e385a8cfe21c093bcb3b (patch) | |
tree | 7b720858e7532f1642c5390614d5b224e0f3cb6f /server/locale | |
parent | b8d7a32c9dcb270275be6fd1c1d5867787e84e34 (diff) | |
download | lua-language-server-0c1d4ff0f246c326e036e385a8cfe21c093bcb3b.zip |
更新 coroutine.isyieldable
Diffstat (limited to 'server/locale')
-rw-r--r-- | server/locale/en-US/libs/@lua/coroutine.lni | 3 | ||||
-rw-r--r-- | server/locale/zh-CN/libs/@lua/coroutine.lni | 3 |
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` 。' |