Skip to content

Glossary: Go in Practice

select (waiting with ctx.Done)

Also written: select, ctx.Done

A `select` waits for whichever of several channels is ready first. Retries use it on `time.After` and `ctx.Done()`, so a canceled request stops waiting at once.

Where the book teaches it

Related terms

time.AfterExponential backoff