async def fetch(): async with httpx.AsyncClient(timeout=2.0) as c: r = await c.get("https://slow.example") return r.text