producer_consumer-problem
Differences
This shows you the differences between two versions of the page.
| producer_consumer-problem [2015/12/13 22:59] – created cedric | producer_consumer-problem [2015/12/13 23:28] (current) – cedric | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| for i in range(10): | for i in range(10): | ||
| print(" | print(" | ||
| - | await asyncio.sleep(0.5) | + | await asyncio.sleep(0.1) |
| await q.put(i) | await q.put(i) | ||
| async def consume(firstname): | async def consume(firstname): | ||
| while True: | while True: | ||
| - | | + | |
| - | print(" | + | print(" |
| if __name__ == " | if __name__ == " | ||
producer_consumer-problem.1450043953.txt.gz · Last modified: by cedric
