Commit e8fcbf68 authored by Benjamin Peterson's avatar Benjamin Peterson

fix a case of set_daemon #5087

parent e61426ef
......@@ -147,7 +147,7 @@ Example of how to wait for enqueued tasks to be completed::
q = Queue()
for i in range(num_worker_threads):
t = Thread(target=worker)
t.set_daemon(True)
t.daemon = True
t.start()
for item in source():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment