红联英语单词
co-routine
co-routine什么意思,co-routine翻译
基本解释
网络: 例程;协同例程;协同程式
例句
Threads do not start when created; instead, a co-routine is started after the fact, using coroutine. resume(t), where t is a thread.
线程不会在创建时启动;相反,它是在创建之后使用coroutine.resume(t)启动的,其中t就是一个线程。
A thread is a co-routine created by calling the built-in function coroutine. create(f), where f is a Lua function.
线程是通过调用内嵌函数coroutine.create(f)创建的一个协同例程(co-routine),其中f是一个Lua函数。
A co-routine is a subroutine that can stop in the middle, and start back up later at the point you stopped. For example
co-routine是一个可以在中途停止和在稍候在那停止的点上继续运行的子程序。