Skip to content

Commit

Permalink
Merge pull request #43 from fechan/concurrency-fix
Browse files Browse the repository at this point in the history
Use default runner for entire program
  • Loading branch information
fechan authored Nov 16, 2024
2 parents ae0130f + 9beb2d6 commit 39383a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion computercraft/sigils/ItemDetailAndLimitCache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function ItemDetailAndLimitCache.new (missingPeriphs, initialMap)
---Fulfills the item details for each slot in the given groups in parallel
---@param groups Group[] List of groups to fulfill item limits and details for
function o:Fulfill(groups)
local runner = Concurrent.create_runner(64)
local runner = Concurrent.default_runner

for _, group in pairs(groups) do
for _, slot in pairs(group.slots) do
Expand Down
1 change: 1 addition & 0 deletions computercraft/sigils/concurrent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,5 @@ end
return {
create_future = create_future,
create_runner = create_runner,
default_runner = create_runner(128),
}

0 comments on commit 39383a6

Please sign in to comment.