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

Skip to content

fix typos #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/ptotd-asyncio-learnings.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ value](https://en.wikipedia.org/wiki/Sentinel_value) to indicate that processing
is done and the coroutine consuming items from the queue should quit. We then
queue up that consumer coroutine & run it.

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

Expand Down Expand Up @@ -479,7 +479,7 @@ Got message: Emitting 29
This is the end my friend....
```

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