asyncio is cooperative, not preemptive
An async function only yields control at await points. Between awaits, you have the CPU. This means async is great for I/O-bound work (API calls, DB queries, file reads) and lousy for CPU-bound work (you'd block the loop).
Three patterns that show up everywhere
gather: run multiple awaitables concurrently, wait for all. cwkPippa uses it where "all of them, then act" is the real shape: at shutdown, to give the detached chat streams up to thirty seconds to finish before cancelling the stragglers; and before a soul wakes to answer comments, to fetch four independent reads at once. The Family Council fan-out looks like a gather job and deliberately is not one — gather waits for the slowest brain, and the council streams each brain's reply the moment it lands. So it starts one task per brain with create_task and multiplexes their output through a queue.
create_task: kick off an awaitable in the background, get a handle. Use this when you want the work to start but don't want to block on it yet.
async generator: a function with async def + yield. The value a yield hands out is an ordinary value; what is awaitable is each step, the __anext__() call that async for awaits to get the next value. The SSE event stream is exactly this pattern — async for chunk in adapter.stream(...).
__anext__() in asyncio.wait_for for a timeout. The cancellation finalized the async generator (Python spec — cancellation closes generators), and SSE streaming silently broke during tool calls. Fix: never wrap __anext__ in wait_for. The whole episode is in docs/COMMON-GOTCHAS.md #1.
The three tools answer different needs. Use gather when you need every result, create_task when the work should start now and has a lifecycle you will manage separately, and an async generator when results should flow out in the order they appear. create_task in particular is not fire-and-forget: drop the handle and nobody is left to collect the task's error or its cancellation.
The hard part of concurrency is not starting things at once. It is cleaning up the rest when one fails or the caller goes away. The code that creates a task owns its end: finishing, cancelling, and collecting what it raised. If you cannot describe that lifecycle, you have not written fast code; you have written a stray task.