mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
fix a case of set_daemon #5087
This commit is contained in:
parent
e61426efbf
commit
e8fcbf689b
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ Example of how to wait for enqueued tasks to be completed::
|
||||||
q = Queue()
|
q = Queue()
|
||||||
for i in range(num_worker_threads):
|
for i in range(num_worker_threads):
|
||||||
t = Thread(target=worker)
|
t = Thread(target=worker)
|
||||||
t.set_daemon(True)
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
for item in source():
|
for item in source():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue