Coroutines in Capy

Capy’s coroutine model is built around a single principle: asynchronous code should look like synchronous code. The code reads top to bottom, with local variables and normal control flow. Capy handles suspension, resumption, thread scheduling, and cancellation behind the scenes. The result is code that is both easier to read and harder to get wrong.

What This Section Covers