Skip to content

Commit

Permalink
Adding an indent to fix wrong rendering in warning block (#3056)
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo authored Jan 15, 2024
1 parent 73e6888 commit d76607b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit d76607b

Please sign in to comment.