From the documentation: "Returns a function that resumes the coroutine each time it is called." I tried with the following code and it works:coroutine.wrap doesn't work when I've tried it. It is supposed to be the same as resume(create) but instead does nothing.
local Test = function(msg)
print(msg)
end
local co = coroutine.wrap(Test)
co("Hello world")
Thanks, my mind is blown!From the documentation: "Returns a function that resumes the coroutine each time it is called." I tried with the following code and it works:
Lua:local Test = function(msg) print(msg) end local co = coroutine.wrap(Test) co("Hello world")
Done.Might want to state that the functions highlighted blue can be used while the ones highlighted red cannot be used.