AI engineering glossary · Python advanced
What is task?
Task (also called asyncio.Task): An asyncio object that wraps a coroutine and schedules it to run on the event loop in the background. It lets several coroutines progress together and lets you check or cancel them.
Task: an example
t = asyncio.create_task(download(url)) starts the download running while the code continues.
Related terms
More Python advanced terms
Where you learn it
Task is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.