Note #2: Coroutines, Awaitables & Tasks (Working Through Async in Python)
Types of Coroutines
I’m sorting out that there are three coroutine flavors in Python:
Native coroutines — the async def / await style.
async def fn(x: str) -> str:
foo = await some_fn(x)
return foo
Key points:
fn("bar") doesn’t sta...
workinprogress.hashnode.dev4 min read