English Reference
Noun

coroutine

n.
C2 Proficiency corou·tine UK spelling coroutine's, coroutine's Programming

n.a part of a computer program that can stop its work and start again later. It is useful for doing many tasks at once without making the computer work too hard.

n.a program component that allows for non-preemptive multitasking by yielding execution to other routines and resuming at the point of suspension. Unlike a standard subroutine, it maintains its state between calls.


SIMPLE

The developer used a coroutine to handle the network request in the background.

CONTEXTUAL

By implementing a coroutine, the game engine can process complex physics calculations over several frames without freezing the user interface.

COMPLEX

Modern asynchronous programming often relies on coroutines to manage concurrent operations efficiently, avoiding the high memory overhead associated with spawning multiple operating system threads.

Usage

Commonly used in the context of asynchronous programming and cooperative multitasking.

This entry
Level C2 · Proficiency
Frequency Rare
Updated