Example Programs

The best way to learn a library is to watch it solve real problems. This section is a collection of complete, working programs. They demonstrate how the pieces you have learned—​tasks, buffers, streams, cancellation, composition—​fit together in practice.

Every example is self-contained and compiles as a standalone program. The code is followed by detailed explanations of what it does, why it is structured that way, and what happens at each step. Start with whatever interests you most, or work through them in order for a guided tour of Capy’s capabilities.

What This Section Covers