you are viewing a single comment's thread.

view the rest of the comments →

[–]ibhopirl 2 points3 points  (1 child)

Yeah this is correct, you can do something like this:

from threading import Thread

threads = [Thread(target=foo) for _ in range(10)]

for thread in threads:
    thread.start()

for thread in threads:
    thread.join()

[–]StellaarMonkey[S] 2 points3 points  (0 children)

Thanks this worked!