Skip to content

Glossary: Go Beyond the Basics

ctx.Done()

Also written: Done

A channel that is closed when the context ends, so a `select` can wait on it alongside the real work.

Where the book teaches it

Related terms

context (context.Context)ctx.Err()select