Skip to content

Glossary: Go in Practice

time.After

Returns a channel that receives a value once a duration has passed. Paired with `ctx.Done()` in a `select`, it waits between retries but stops at once if the request is canceled.

Where the book teaches it

Related terms

Exponential backoffselect (waiting with ctx.Done)