fun2 = function ( ... )
local i = 1
while true do
print(i)
i = i + 1
coroutine.yield(i)
end
end
co3 = coroutine.create(fun2) -- coroutine.warp return fun
_,temp =coroutine.resume(co3) -- fun()
print("tmp-- " .. temp)
coroutine.resume(co3)
-- out 1
-- tmp-- 2
-- 2
print(coroutine.status(co3))
print(coroutine.running())