Thread, stackful coroutine, stackless coroutine, generator , statemachine.
阅读全文...
lua的协程是一种非对称协程,通过协程可以实现线程的特性。