lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>I have not understand your example about running and normal 
status.
>Can you give me further explains?
>
>For "coroutine.status(coroutine.running())", what means ?
>

It's a simplified version of this:

> function foo()
>> print(coroutine.status(co))
>> end
> co = coroutine.create(foo)
> coroutine.resume(co)
running