Closed clementfarabet closed 8 years ago
pool = BackgroundTaskPool(16) -- works: for i = 1,32 do pool.addTask(function(i) return math.sqrt(i) end, i) end -- hangs: for i = 1,1000 do pool.addTask(function(i) return math.sqrt(i) end, i) end