IT lexicon › Programming › Coroutine

Coroutine

Programming På svenska → Updated: 2026-05-23

Function that can pause its execution and resume later — cheaper than a thread, more expensive than a function call.

Kotlin coroutines, Go goroutines, Python async/await, C++20 coroutines. A thousand coroutines on the same OS thread is no problem; a thousand OS threads eat 8 GB of stack. The basis of modern async/concurrent systems.

← Back to the lexicon