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
10 lines
202 B
Lua
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()
|