From: Nyakku Shigure Date: Mon, 15 Jan 2024 12:30:09 +0000 (+0800) Subject: Adding an indent to fix wrong rendering in warning block (#3056) X-Git-Tag: 0.27.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d76607b112bf0bfbc79dc4dd8566101c69dbfa6e;p=thirdparty%2Fhttpx.git Adding an indent to fix wrong rendering in warning block (#3056) --- diff --git a/docs/async.md b/docs/async.md index 9b679006..d54a353d 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: