Glossary: Go Beyond the Basics
ctx.Err()
Also written: Err
Says why a context ended: `context.Canceled` or `context.DeadlineExceeded`. It returns nil while the context is still live.
Glossary: Go Beyond the Basics
Also written: Err
Says why a context ended: `context.Canceled` or `context.DeadlineExceeded`. It returns nil while the context is still live.