diff --git a/modules/concur/init.lua b/modules/concur/init.lua index b5b03e24..dc5db627 100644 --- a/modules/concur/init.lua +++ b/modules/concur/init.lua @@ -20,10 +20,11 @@ type AnyFn = (...any) -> ...any ```lua game:BindToClose(function() local all = {} - for _,player in ipairs(Players:GetPlayers()) do + for _,player in Players:GetPlayers() do local save = Concur.spawn(function() DoSomethingToSaveData(player) end) + table.insert(all, save) end local allConcur = Concur.all(all) allConcur:Await() diff --git a/modules/concur/wally.toml b/modules/concur/wally.toml index de0e8080..7de80e66 100644 --- a/modules/concur/wally.toml +++ b/modules/concur/wally.toml @@ -1,7 +1,7 @@ [package] name = "sleitnick/concur" description = "Concurrent task handler" -version = "0.1.1" +version = "0.1.2" license = "MIT" authors = ["Stephen Leitnick"] registry = "https://github.com/UpliftGames/wally-index"