multi/test.lua
Ryan Ward 9b5acbd23e 13.0.0 Will be out soooooooon I promise
Anyway added some new objects, removed a few and wrote some more documentation... all thats left is system threads and network threads(nodes)
2018-11-14 10:27:39 -05:00

17 lines
316 B
Lua

package.path="?/init.lua;?.lua;"..package.path
local multi = require("multi")
test = multi:newHyperThreadedProcess("test")
test:newLoop(function()
print("HI!")
end)
test:newLoop(function()
print("HI2!")
thread.sleep(.5)
end)
multi:newAlarm(3):OnRing(function()
test:Sleep(10)
end)
test:Start()
multi:mainloop()