Re:Python and Async Simplified (2018)
by Spivak on Monday October 24, 2022 @09:21AM
(#33316271)
Nope, creating the coroutines doesn’t schedule them for execution. That only happens on await. Python is not eager. If you want that behavior you need to use create_task. It doesn’t work like spawning a thread and waiting on them.
From the docs: https://docs.python.org/3/library/asyncio-task.html
> Note that simply calling a coroutine will not schedule it to be executed: