Wrap token-streaming backends in an async generator that caps concurrent streams, starts lazily, and frees its slot on every exit path.
Only a few problems are open while we find out which ones people actually want. This one opens when enough people ask for it.
Used once to tell you this problem opened, then deleted. Sending it also counts as asking for the problem.
Group concurrent inference requests into batches that flush when full or when the oldest request has waited long enough, with cancellation and drain.
Build an asyncio cache whose entries expire after a TTL, where concurrent misses for the same key share one fetch that survives caller cancellation.
Retry a failing coroutine with capped exponential backoff, re-raise the last error, and never swallow cancellation.
Collapse concurrent fetches for the same key into one shared call, with per-caller timeouts that never cancel the shared work.
See all problems