multi/test.lua
2020-03-10 12:54:52 -04:00

10 lines
287 B
Lua

package.path="?.lua;?/init.lua;?.lua;?/?/init.lua;"..package.path
multi, thread = require("multi"):init()
a=0
func = thread:newFunction(function()
return thread.holdFor(3,function()
return (a==5)
end)
end,true) -- Tell the code to wait and then return
print(func())
multi:lightloop()