This commit is contained in:
2025-07-30 21:49:34 +02:00
parent be89f6a960
commit d1ad9d0be3
5 changed files with 22 additions and 4 deletions

View File

@@ -228,6 +228,7 @@ local libcomputer = {
local deadline = computer.uptime() + (type(timeout) == "number" and timeout or math.huge)
repeat
print("waiting for signal", computer.uptime())
yield() -- give executor a chance to give us stuff
local s = table.pack(computer.popSignal())
if s.n > 0 then
@@ -437,7 +438,6 @@ local lastGC = computer.uptime()
while true do
timeout = nextDeadline()
bubbleYield = false
collectgarbage()
if computer.uptime() - lastGC >= gcInterval then
collectgarbage("collect")