use property api
This commit is contained in:
parent
e089980cf3
commit
e047d7953f
|
@ -183,7 +183,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.setDaemon(True)
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
for item in source():
|
for item in source():
|
||||||
|
|
Loading…
Reference in New Issue