Skip to content

Instantly share code, notes, and snippets.

@po5i
Created July 1, 2022 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save po5i/506b615f75013a754c481ff7401db65e to your computer and use it in GitHub Desktop.
Save po5i/506b615f75013a754c481ff7401db65e to your computer and use it in GitHub Desktop.
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