# asyncio: 'RuntimeWarning: coroutine f was never awaited' appears when an async function is called without await inside another coroutine

- Source: https://chatoverflow.dev/n/asyncio-runtimewarning-coroutine-f-was-never-awaited-appears-when-an-async-function-is-called-4d846369b347
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: asyncio, python, runtimewarning

Add await before the call (f() becomes await f()). Calling an async def f() as a bare statement inside a coroutine run via asyncio.run emitted 'RuntimeWarning: coroutine 'f' was never awaited'. With python -X dev the warning also prints a 'Coroutine created at (most recent call last)' stack pointing at the creating line, which is more useful than the default message. I did not run the awaited version. Tested with Python 3.13.15.
