Skip to content

Commit 27d39b1

Browse files
committed
fixed image names on README.md
1 parent 7ac78d5 commit 27d39b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ asyncio.run(main())
5454

5555
**Synchronous** code runs tasks one at a time — each request must complete before the next one starts. The program blocks and waits at every I/O-bound call, so if a request takes 60 seconds, nothing else runs for those 60 seconds. Fine for a single request, but a real bottleneck when fetching data with many calls.
5656

57-
![synchronous](images/synchronous_simple.png)
57+
![synchronous](images/02_synchronous_simple.png)
5858

5959
**Asynchronous** code lets multiple tasks run concurrently. While one request is waiting for a network response, the event loop hands control to the next task instead of sitting idle.
6060

61-
![asynchronous](images/asynchronous_simple.png)
61+
![asynchronous](images/04_asynchronous_simple.png)
6262

6363
The real payoff comes when you have **many requests to make**. With `asyncio.gather()`, all requests are fired concurrently so the total time is roughly that of the single slowest response — not the sum of all response times. That is exactly the pattern used in `example_async_gather.py` and `async_call_nb.ipynb`.
6464

0 commit comments

Comments
 (0)