Skip to content

Commit 898f863

Browse files
Update Doc/library/threading.rst
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent dcfe231 commit 898f863

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/threading.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ creating and starting threads using :class:`~threading.Thread`::
9292
# Using `args` to pass positional arguments and `kwargs` for keyword arguments
9393
t = threading.Thread(target=crawl, args=(link,), kwargs={"delay": 2})
9494
threads.append(t)
95+
96+
# Start each thread
97+
for t in threads:
9598
t.start()
9699

97100
# Wait for all threads to finish

0 commit comments

Comments
 (0)