We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7854012 commit a0eb69cCopy full SHA for a0eb69c
Doc/library/queue.rst
@@ -201,15 +201,14 @@ Example of how to wait for enqueued tasks to be completed::
201
print(f'Finished {item}')
202
q.task_done()
203
204
- # turn-on the worker thread
+ # Turn-on the worker thread.
205
threading.Thread(target=worker, daemon=True).start()
206
207
- # send thirty task requests to the worker
+ # Send thirty task requests to the worker.
208
for item in range(30):
209
q.put(item)
210
- print('All task requests sent\n', end='')
211
212
- # block until all tasks are done
+ # Block until all tasks are done.
213
q.join()
214
print('All work completed')
215
0 commit comments