Asyncio task vs coroutine

What are the criteria to determine when a coroutine should be wrapped in a task or not? You should use a task when you want your coroutine to effectively run in the background. The code you’ve seen just awaits the coroutines directly because it needs them running in sequence. For example, consider an HTTP client … Read more