Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 457cd45

Browse files
authored
Merge pull request #213 from Bankde/Fix_typos
fix typos
2 parents ae15512 + b7e0bc5 commit 457cd45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/ptotd-asyncio-learnings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ value](https://en.wikipedia.org/wiki/Sentinel_value) to indicate that processing
343343
is done and the coroutine consuming items from the queue should quit. We then
344344
queue up that consumer coroutine & run it.
345345

346-
Note if you put that `END_OF_QUEUE` before the `queue_coro` then it goes
346+
Note if you put that `END_OF_QUEUE` after the `queue_coro` then it goes
347347
forever. Remember that the event loop is single threaded, so until something
348348
finishes or yields control, it'll keep running.
349349

@@ -479,7 +479,7 @@ Got message: Emitting 29
479479
This is the end my friend....
480480
```
481481

482-
That is, the consumer keeps consuming until 42 is found, and then the consumer
482+
That is, the producer keeps producing until 42 is found, and then the consumer
483483
consumes everything. The reason for this is that the `asyncio.sleep()` call will
484484
yield control (it's effectively an I/O operation). Remember: `asyncio` is
485485
single threaded concurrency, without those sleep calls what happens is the item

0 commit comments

Comments
 (0)