Update 'controller/Scheduler.lua'

This commit is contained in:
manuel 2023-01-04 11:34:44 +00:00
parent cdebaa4548
commit 67ed2a9953

View File

@ -1,7 +1,7 @@
function AddQueue(f, a) function AddQueue(f, a, a2, a3)
local i = #Queue + 1 local i = #Queue + 1
Queue[i] = coroutine.create(f) Queue[i] = coroutine.create(f)
coroutine.resume(Queue[i], a) coroutine.resume(Queue[i], a, a2, a3)
end end
@ -17,7 +17,7 @@ while not finish do
finish = false finish = false
end end
end end
if os.clock() - t1 > 1 do if os.clock() - t1 > 1 then
sleep(0) sleep(0)
t1 = os.clock() t1 = os.clock()
end end