What is the difference between async and sync functions?
Asynchronous programming and asyncio
Audio flashcard · 0:14Nortren·
What is the difference between async and sync functions?
0:14
A sync function executes from start to finish blocking the calling thread. An async function returns a coroutine that must be awaited. Async functions can pause at await points without blocking the thread. Mixing sync and async code carelessly can block the event loop and degrade performance.
docs.python.org