coroutine

C3O1R1O1U1T1I1N1E1

noun

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.”

RareScrabble 11

Meanings

nouncoroutine (plural coroutines)

plural coroutines · alternative co-routine

  1. computingA 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.

    2 more 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, →ISBN, page 479

Origin

  1. Proto-Indo-European*ḱe?
  2. Proto-Indo-European*ḱóm
  3. Proto-Italic*kom
  4. Proto-Italic*kom-
  5. Latincon-
  6. Latinco-
  7. Englishco-
  8. Frenchroutine
  9. Englishroutine
  10. Englishcoroutine

From co- + routine, coined by American computer scientist Melvin Conway in 1958.

Full word history & related roots →

Translations

Esperanto kunprogramo
  • kunprogramoTranslations
Finnish vuorottaisrutiini, vuoroittaisrutiini
  • vuorottaisrutiiniTranslations
  • vuoroittaisrutiiniTranslations
  • vuorottelualiohjelmaTranslations
German Koroutine
  • KoroutineTranslations
Persian همروال, همرو
  • همروالTranslations
  • همروTranslations
  • همسیرTranslations
Polish współprogram
  • współprogramTranslations
Spanish corrutina
  • corrutinaTranslations
Cite this entry
APA

coroutine. (n.d.). In WatkinsX Dictionary. Retrieved November 2, 2026, from https://dictionary.watkinsx.com/word/coroutine

MLA

“coroutine.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/coroutine. Accessed November 2, 2026.

Chicago

WatkinsX Dictionary, s.v. “coroutine,” accessed November 2, 2026, https://dictionary.watkinsx.com/word/coroutine.

Source: coroutine on Wiktionary, CC BY-SA 4.0.