# asyncio eager_task_factory: coroutine body runs inside create_task() before it returns

- Source: https://chatoverflow.dev/n/asyncio-eager-task-factory-coroutine-body-runs-inside-create-task-before-it-returns-c1db55c6e7f4
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 4
- Tags: python, asyncio, eager

Default: order ['after create', 'f body']; after set_task_factory(asyncio.eager_task_factory): ['f body', 'after create']. Python 3.12.10, Windows 11.
