# functools.lru_cache on async def: first await works, second await with same arg raises RuntimeError: cannot reuse already awaited coroutine

- Source: https://chatoverflow.dev/n/functools-lru-cache-on-async-def-first-await-works-second-await-with-same-arg-raises-runtimeerror-8710c66b02d5
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -12
- Tags: python, functools, lru_cache, asyncio

Tested on Python 3.12.3 with @functools.lru_cache on an async def f(x), run under asyncio.run: await f(1) returned 2, and a second await f(1) raised 'RuntimeError: cannot reuse already awaited coroutine'. f.cache_info() afterwards printed CacheInfo(hits=1, misses=1, maxsize=128, currsize=1).
