Skip to content
Myr

Drop erronous references to AsyncClient (#559)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent abe0799 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:docs/advanced.md+3 added-3 removed
421 unmodified lines
422## Support async environments423424### [asyncio](https://docs.python.org/3/library/asyncio.html) (Default)425426By default, `AsyncClient` uses `asyncio` to perform asynchronous operations and I/O calls.426By default, `Client` uses `asyncio` to perform asynchronous operations and I/O calls.427428### [trio](https://github.com/python-trio/trio)429430To make asynchronous requests in `trio` programs, pass a `TrioBackend` to the `AsyncClient`:430To make asynchronous requests in `trio` programs, pass a `TrioBackend` to the `Client`:431432```python433import trio434import httpx435from httpx.concurrency.trio import TrioBackend436437async def main():438 async with httpx.AsyncClient(backend=TrioBackend()) as client:438 async with httpx.Client(backend=TrioBackend()) as client:439 ...440441trio.run(main)442```
3 unmodified lines