协程
协程(Coroutine),重点在routine上。顾名思义,协程与函数(或者叫例程,routine)是非常相似的。
协同程序
5避免处处使用Update——使用coroutine(协同程序):unity开发的一个非常普遍的设计方法是,当只需要运行一次时,把简单的代码放在每一帧都运行的函数中。
[计] 协同例程
虽然 AT&T发布的标准包含了 I/O,协同例程( coroutine),任务( tasking)和复杂算术的类库,但 C++并没有标准的类库,也不将其作为环境的一部分。
联立子程序
... coronaecorona的复数 coronite反应边;镁电气石 coroutine联立子程序 ...
Coroutines are computer program components that generalize subroutines for nonpreemptive multitasking, by allowing multiple entry points for suspending and resuming execution at certain locations. Coroutines are well-suited for implementing more familiar program components such as cooperative tasks, exceptions, event loop, iterators, infinite lists and pipes.According to Donald Knuth, the term coroutine was coined by Melvin Conway in 1958, after he applied it to construction of an assembly program. The first published explanation of the coroutine appeared later, in 1963.