Coroutine

noun

noun ·Rare ·Advanced level

Definitions

Noun
  1. 1
    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."

Example

More examples

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

Etymology

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

Data sourced from Wiktionary, WordNet, CMU, and other open linguistic databases. Updated March 2026.