multi/examples/lanesintegratetest8.lua
Ryan e0c72cb8ea SystemThreadedExecute (1.8.5)
Added: SystemThreadedExecute
2017-07-04 13:53:31 -04:00

12 lines
431 B
Lua

package.path="../?.lua;../?/init.lua;"..package.path
local GLOBAL,sThread=require("multi.integration.lanesManager").init()
cmd=multi:newSystemThreadedExecute("SystemThreadedExecuteTest.lua") -- This file is important!
cmd.OnCMDFinished(function(code) -- callback function to grab the exit code... Called when the command goes through
print("Got Code: "..code)
end)
multi:newTLoop(function()
print("...")
end,1)
multi:mainloop()