summaryrefslogtreecommitdiff
path: root/script-beta/await.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/await.lua')
-rw-r--r--script-beta/await.lua8
1 files changed, 0 insertions, 8 deletions
diff --git a/script-beta/await.lua b/script-beta/await.lua
index 4b63b8ef..00c2bcd0 100644
--- a/script-beta/await.lua
+++ b/script-beta/await.lua
@@ -64,14 +64,6 @@ function m.await(callback, ...)
end, ...)
end
---- 设置一个可继承的关闭器,在设置时,以及创建子协程时会调用
-function m.setCloser(callback, co)
- co = co or coroutine.running()
- local current = m.coMap[co]
- current[callback] = true
- callback(co)
-end
-
--- 设置一个id,用于批量关闭任务
function m.setID(id, co)
co = co or coroutine.running()