# RuntimeWarning: 协程 'fetch' 从未被 await

- **ID:** `python/asyncio-coroutine-never-awaited`
- **领域:** python
- **类别:** runtime_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

调用了协程函数但返回的协程对象既未 await 也未调度，导致函数体从未执行。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8+ | active | — | — |
| 3.9+ | active | — | — |
| 3.10+ | active | — | — |
| 3.11+ | active | — | — |
| 3.12+ | active | — | — |

## 解决方案

1. **** (97% 成功率)
   ```
   await fetch(url)
# or
asyncio.create_task(fetch(url))
   ```
2. **** (85% 成功率)
   ```
   PYTHONASYNCIODEBUG=1 python app.py
# or in code:
loop = asyncio.get_running_loop()
loop.set_debug(True)
   ```

## 无效尝试

- **** — Hides the warning but the coroutine still never runs; business logic silently missing. (90% 失败率)
- **** — Both calls produce unawaited coroutine objects; neither executes. (85% 失败率)
