# panic: context canceled (in goroutine)

- **ID:** `go/context-cancel-not-propagated`
- **Domain:** go
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A context is canceled, but a goroutine doesn't check the context and tries to use it, causing a panic or error.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.20 | active | — | — |
| 1.22 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Check ctx.Err() before and after operations, and return early if canceled.
   ```
2. **** (95% success)
   ```
   Pass ctx to all functions and use select with ctx.Done() to handle cancellation.
   ```

## Dead Ends

- **** — May lead to resource leaks or incorrect results; cancellation should be respected. (80% fail)
- **** — Loses cancellation ability; may cause indefinite blocking. (60% fail)
