I need some coroutine help.
If I have this code:
function func1() read() end function func2() sleep(inf) end cor1 = coroutine.create(func1) cor2 = coroutine.create(func2) coroutine.resume(cor1) coroutine.resume(cor2)The 2 functions are running both at same time?
And how can I get, that coroutine is ended or not?
And how can I 'destroy' a coroutine?
And with coroutine.yield() and then coroutine.resume() I can 'pause' functions?
Please help me, and tell me how this works in CC.
Konlab












