Move callback to top of functio

This commit is contained in:
Jérémie N'gadi
2017-08-28 12:51:10 +02:00
parent fe140eec0f
commit fd37b71ab1
-1
View File
@@ -45,7 +45,6 @@ function Async.parallelLimit(tasks, limit, cb)
local function processQueue()
if #queue == 0 then
cb(results)
return
end