Coroutine
Noun · Development
Definitions
A generalization of subroutines that can suspend execution at certain points and resume later, enabling cooperative multitasking without threads. Used extensively in Python (async/await), Kotlin, Lua, and Go (as goroutines). More lightweight than threads.
In plain English: A function that can pause itself partway through, let other code run, and then pick up right where it left off.
Example: "Coroutines let us handle 10,000 concurrent connections on a single thread without callback hell."