From: Kieran Klukas <92754843+kcoderhtml@users.noreply.github.com> Date: Mon, 23 May 2022 09:09:15 +0000 (-0400) Subject: Removed curio from async.md (#2240) X-Git-Tag: 0.23.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=940d61b239d0f387405f56005b13ad5aed3216b0;p=thirdparty%2Fhttpx.git Removed curio from async.md (#2240) --- diff --git a/docs/async.md b/docs/async.md index 8782cdea..e22a2907 100644 --- a/docs/async.md +++ b/docs/async.md @@ -170,27 +170,6 @@ trio.run(main) The `trio` package must be installed to use the Trio backend. -### [Curio](https://github.com/dabeaz/curio) - -Curio is a [coroutine-based library](https://curio.readthedocs.io/en/latest/tutorial.html) -for concurrent Python systems programming. - -```python -import httpx -import curio - -async def main(): - async with httpx.AsyncClient() as client: - response = await client.get('https://www.example.com/') - print(response) - -curio.run(main) -``` - -!!! important - The `curio` package must be installed to use the Curio backend. - - ### [AnyIO](https://github.com/agronholm/anyio) AnyIO is an [asynchronous networking and concurrency library](https://anyio.readthedocs.io/) that works on top of either `asyncio` or `trio`. It blends in with native libraries of your chosen backend (defaults to `asyncio`).