coroutine
n.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.
The developer used a coroutine to handle the network request in the background.
By implementing a coroutine, the game engine can process complex physics calculations over several frames without freezing the user interface.
Modern asynchronous programming often relies on coroutines to manage concurrent operations efficiently, avoiding the high memory overhead associated with spawning multiple operating system threads.
Commonly used in the context of asynchronous programming and cooperative multitasking.