Skip to content

Glossary: Go Beyond the Basics

context.Canceled

The error `ctx.Err()` returns after `cancel()` has been called.

Where the book teaches it

Related terms

ctx.Err()context.DeadlineExceeded