Python language

Coroutine

A function defined with async def. Calling it returns a coroutine object; nothing runs until it is awaited or scheduled.

Why interviewers ask about it

The common bug is forgetting to await, which produces a 'coroutine was never awaited' warning and silently does nothing.

This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.