Skip to content

Commit c581115

Browse files
committed
[@boydfd] remove useless lock in example.
1 parent fa985a9 commit c581115

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def demo(factory, position, total):
1919

2020
with ThreadPoolExecutor(max_workers=20) as executor:
2121
tasks = range(100)
22-
lock = threading.Lock()
2322
multi_thread_factory = TqdmMultiThreadFactory()
2423
for i, url in enumerate(tasks, 1):
2524
executor.submit(demo, multi_thread_factory, i, 100)

0 commit comments

Comments
 (0)