From 1efb98d4ff108a0a50ac8bacdc8d177011f62fc5 Mon Sep 17 00:00:00 2001 From: Stephen Leitnick Date: Mon, 19 Sep 2022 09:18:11 -0400 Subject: [PATCH 1/2] Fix --- modules/concur/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() From c634e5dcc9103a0699948f6bc21efa86eb548e78 Mon Sep 17 00:00:00 2001 From: Stephen Leitnick Date: Mon, 19 Sep 2022 09:18:51 -0400 Subject: [PATCH 2/2] Bump version --- modules/concur/wally.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"