diff options
author | sumneko <sumneko@hotmail.com> | 2019-04-09 14:04:36 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2019-04-09 14:04:36 +0800 |
commit | 264e332acd1dbfb91c3f6633f6b48f3e4119f832 (patch) | |
tree | 7a5f78d6ed49f07cf1932550964532cccfc3f0ad /server/locale/zh-CN/libs/@lua/coroutine.lni | |
parent | 96647a35c6977909df5d6c5f7e77d0a4a2dbe2c0 (diff) | |
download | lua-language-server-264e332acd1dbfb91c3f6633f6b48f3e4119f832.zip |
不要加载自定义库中的全局变量
Diffstat (limited to 'server/locale/zh-CN/libs/@lua/coroutine.lni')
-rw-r--r-- | server/locale/zh-CN/libs/@lua/coroutine.lni | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/server/locale/zh-CN/libs/@lua/coroutine.lni b/server/locale/zh-CN/libs/@lua/coroutine.lni new file mode 100644 index 00000000..f2912c70 --- /dev/null +++ b/server/locale/zh-CN/libs/@lua/coroutine.lni @@ -0,0 +1,39 @@ +[create] +description = '创建一个主体函数为 `f` 的新协程。' + +[isyieldable] +description = '如果正在运行的协程可以让出,则返回真。' + +[kill] +description = '杀死协程 `co`,关闭它所有等待 *to-be-closed* 的变量,并将协程状态设为 `dead` 。' + +[resume] +description = '开始或继续协程 `co` 的运行。' + +[running] +description = '返回当前正在运行的协程加一个布尔量。 如果当前运行的协程是主线程,其为真。' + +[status] +description = '以字符串形式返回协程 `co` 的状态。' +[[.enums]] +name = 'status' +enum = 'running' +description = '正在运行。' +`````````` +name = 'status' +enum = 'suspended' +description = '挂起或是还没有开始运行。' +`````````` +name = 'status' +enum = 'normal' +description = '是活动的,但并不在运行。' +`````````` +name = 'status' +enum = 'dead' +description = '运行完主体函数或因错误停止。' + +[wrap] +description = '创建一个主体函数为 `f` 的新协程。' + +[yield] +description = '挂起正在调用的协程的执行。' |