We can use HTTP client libraries in asyncio programs. The popular Requests client HTTP library performs blocking network I/O when making requests. Using this library directly in our asyncio programs will block the event loop and prevent all other coroutines from progressing, however, there are workarounds such as running blocking calls in a separate thread. […]
Published on December 11, 2023 10:00