File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,7 @@ value](https://en.wikipedia.org/wiki/Sentinel_value) to indicate that processing
343
343
is done and the coroutine consuming items from the queue should quit. We then
344
344
queue up that consumer coroutine & run it.
345
345
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
347
347
forever. Remember that the event loop is single threaded, so until something
348
348
finishes or yields control, it'll keep running.
349
349
@@ -479,7 +479,7 @@ Got message: Emitting 29
479
479
This is the end my friend....
480
480
```
481
481
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
483
483
consumes everything. The reason for this is that the ` asyncio.sleep() ` call will
484
484
yield control (it's effectively an I/O operation). Remember: ` asyncio ` is
485
485
single threaded concurrency, without those sleep calls what happens is the item
You can’t perform that action at this time.
0 commit comments