Example Programs

These examples 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.

For a reading order for your role, start with Protocol Anatomy. It lists what to read next for application developers, framework authors, and I/O library authors.

What This Section Covers