Glossary: Go Beyond the Basics
context (context.Context)
Also written: context, ctx, context.Context, context.Background
A value passed to slow functions that carries a deadline and a cancel signal, telling the work when to stop. Contexts form a tree, so canceling a parent ends its children.
Where the book teaches it
Related terms
ctx.Done()ctx.Err()WithTimeout / WithCancelsignal.NotifyContext