The AI-powered English dictionary
plural coroutines
(programming) A piece of code that performs a task, and that can be passed new input and return output more than once. quotations examples
The actual origin of the concept of symmetric unit control is difficult to determine. One of the earliest published applications of coroutines was in the area of syntax analysis (Conway, 1963).
2010, Robert W. Sebesta, Concepts of Programming Languages, Addison-Wesley Longman, page 440
Python coroutines are the product of a series of enhancements to the humble generator functions we've seen so far in the book.
2015, Luciano Ramalho, Fluent Python: Clear, Concise, and Effective Programming, O'Reilly Media, page 479