multi/examples/loopTest.lua
Ryan 7601fc636d Updated to 1.8.0
Added:
SystemThreadedBenchmark
SystemThreadedQueue
Fixed a bunch of bugs in the intergrations and regular multi objects
Fixed Error management in threads
All errors trigger the multi.OnError connection
Module creation support improved
added more examples
added Type to threaded objects
2017-06-28 22:40:04 -04:00

10 lines
202 B
Lua

-- like the while loop (kinda)
require("multi")
loop=multi:newLoop(function(self,dt)
if dt>10 then
print("Enough time has passed!")
self:Break() -- lets break this thing
end
end)
multi:mainloop()