high92%
`abatch_as_completed` does not cancel pending tasks on exception or early exit
The async generator `abatch_as_completed` creates asyncio tasks for all inputs but fails to cancel tasks that are still pending when the generator exits due to an exception or early break. This causes background tasks to continue running, potentially incurring extra API costs and resource usage.
