Calling a coroutine without the await
statement just returns the coroutine without actually running the function.
This can have the unexpected side-effect that your code is not executed at all. This demonstrates the importance of unit testing to highlight such issues.
If our GitHub code review bot spots this issue in your pull request it gives this advice:
1 | + | async def task(): | |
2 | + | download_files() |
Calling a coroutine without the await
statement just returns the coroutine without actually running the function.
3 | + | ||
4 | + | async def download_files(): | |
5 | + | pass |