diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-02 13:41:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-02 13:41:25 +0800 |
commit | 614196b67198e3e0765a25b6b9c1b0a45624855e (patch) | |
tree | fe4fcc74f01a0d95451e7fd8d0dc68e0b953dfe9 /script-beta/await.lua | |
parent | 877aebdc2675986fce873272455d3530ce282907 (diff) | |
download | lua-language-server-614196b67198e3e0765a25b6b9c1b0a45624855e.zip |
diagnostics.workspaceDelay
Diffstat (limited to 'script-beta/await.lua')
-rw-r--r-- | script-beta/await.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/await.lua b/script-beta/await.lua index a718dbb6..558c273e 100644 --- a/script-beta/await.lua +++ b/script-beta/await.lua @@ -100,7 +100,7 @@ function m.sleep(time) end local co = coroutine.running() timer.wait(time, function () - if coroutine.status(co) == 'dead' then + if coroutine.status(co) ~= 'suspended' then return end return m.checkResult(co, coroutine.resume(co)) @@ -121,7 +121,7 @@ function m.wait(callback, ...) return end waked = true - if coroutine.status(co) == 'dead' then + if coroutine.status(co) ~= 'suspended' then return end return m.checkResult(co, coroutine.resume(co, ...)) |