From b7dcb7aa60aa95c2c1445ac62ce38e8e93cb7038 Mon Sep 17 00:00:00 2001 From: SigureMo Date: Sun, 14 Jan 2024 14:58:10 +0800 Subject: [PATCH] Adding an indent to fix wrong rendering in warning block --- docs/async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/async.md b/docs/async.md index 1138c30c56..9155591e72 100644 --- a/docs/async.md +++ b/docs/async.md @@ -54,7 +54,7 @@ async with httpx.AsyncClient() as client: ``` !!! warning -In order to get the most benefit from connection pooling, make sure you're not instantiating multiple client instances - for example by using `async with` inside a "hot loop". This can be achieved either by having a single scoped client that's passed throughout wherever it's needed, or by having a single global client instance. + In order to get the most benefit from connection pooling, make sure you're not instantiating multiple client instances - for example by using `async with` inside a "hot loop". This can be achieved either by having a single scoped client that's passed throughout wherever it's needed, or by having a single global client instance. Alternatively, use `await client.aclose()` if you want to close a client explicitly: