Created
July 1, 2022 18:41
-
-
Save po5i/506b615f75013a754c481ff7401db65e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from threading import Thread | |
from main import get_repos | |
if __name__ == "__main__": | |
tasks = [] | |
tasks.append(Thread(target=get_repos, args=("python",))) | |
tasks.append(Thread(target=get_repos, args=("globant",))) | |
for t in tasks: | |
t.start() | |
for t in tasks: | |
t.join() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment