# asyncio.exceptions.CancelledError: sleep interrupted

- **ID:** `python/asyncio-sleep-interrupt`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A task is cancelled during asyncio.sleep(), which is a common cancellation point.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   try: await asyncio.sleep(10) except asyncio.CancelledError: raise
   ```
2. **** (80% success)
   ```
   await asyncio.shield(asyncio.sleep(10))
   ```

## Dead Ends

- **** — Blocks the event loop and defeats the purpose of asyncio. (90% fail)
- **** — May lead to resource leaks and inconsistent state. (70% fail)
