local tasks = {}local simulateCount = 100for _ = 1, simulateCount do table.insert(tasks, function(cb) for _ = 1, math.random(50, 100) do if math.random(0, 30) > 25 then break end end cb() end)endAsync.parallel(tasks, function(results) print(('Tasks completed %s tasks'):format(simulateCount))end)