coroutine

Hello, you have come here looking for the meaning of the word coroutine. In DICTIOUS you will not only get to know all the dictionary meanings for the word coroutine, but we will also tell you about its etymology, its characteristics and you will know how to say coroutine in singular and plural. Everything you need to know about the word coroutine you have here. The definition of the word coroutine will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofcoroutine, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
See also: co-routine

English

Alternative forms

Etymology

co- +‎ routine, coined by Melvin Conway in 1958.

Noun

coroutine (plural coroutines)

  1. (programming) A piece of code that performs a task, and that can be passed new input and return output more than once.
    Although a powerful tool, coroutines can be hard to understand due to the way data can flow back and forth between sections of the code.
    • 2010, Robert W. Sebesta, Concepts of Programming Languages, Addison-Wesley Longman, page 440:
      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).
    • 2015, Luciano Ramalho, Fluent Python: Clear, Concise, and Effective Programming, O'Reilly Media, →ISBN, page 479:
      Python coroutines are the product of a series of enhancements to the humble generator functions we've seen so far in the book.

Hyponyms

  • subroutine (a coroutine that accepts input once and returns output once)
  • generator (a coroutine that accepts input once, but yields output multiple times)

Derived terms

Translations

See also

Further reading