aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/async.lua')
-rw-r--r--util/async.lua14
1 files changed, 0 insertions, 14 deletions
diff --git a/util/async.lua b/util/async.lua
index 9456874d..52d2c99c 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -226,20 +226,6 @@ local function ready()
return pcall(checkthread);
end
-local once; -- forward declaration
-do
- local once_watchers = {
- error = function (_, err)
- error(err);
- end;
- };
- local function once_runner(func) func(); end
- function once(func)
- local r = runner(once_runner, once_watchers);
- return r:run(func);
- end
-end
-
local function sleep(s)
local wait, done = waiter();
timer.add_task(s, done);