aboutsummaryrefslogtreecommitdiffstats
path: root/util/async.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-08-12 10:27:08 +0100
committerMatthew Wild <mwild1@gmail.com>2013-08-12 10:27:08 +0100
commitdf81676c778b630b931659f6cc5e366e39efa50f (patch)
tree936410a439862e025010cbfc036f38b21fb2af89 /util/async.lua
parent6eb1b5d493b35ec7661285fd0f00fb9b1d58b39b (diff)
downloadprosody-df81676c778b630b931659f6cc5e366e39efa50f.tar.gz
prosody-df81676c778b630b931659f6cc5e366e39efa50f.zip
util.async: Make functions local
Diffstat (limited to 'util/async.lua')
-rw-r--r--util/async.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/async.lua b/util/async.lua
index 9036a876..59d3c6f2 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -22,7 +22,7 @@ local function runner_continue(thread)
return true;
end
-function waiter(num)
+local function waiter(num)
local thread = coroutine.running();
if not thread then
error("Not running in an async context, see http://prosody.im/doc/developers/async");
@@ -54,7 +54,7 @@ local function runner_create_thread(func, self)
end
local empty_watchers = {};
-function runner(func, watchers, data)
+local function runner(func, watchers, data)
return setmetatable({ func = func, thread = false, state = "ready", notified_state = "ready",
queue = {}, watchers = watchers or empty_watchers, data = data }
, runner_mt);