Grokking Concurrency in Python
0% completed
Coroutines, Tasks and Futures
What happens when a program calls a function defined with async def and leaves out the await? Many engineers expect the function to start in the background, or else to fail with an error. Neither happens: the call returns at once, raises nothing, and runs none of the function's code.
Calling a Coroutine Function
A coroutine function is a function defined with async def, and calling it returns a coroutine object without running any of its code. **A coroutine object is a paused computation that starts only when something drives it, either an `await
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%