Skip to content

Instantly share code, notes, and snippets.

@po5i
Created July 1, 2022 18:42
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/a974efe872e5cc80a2af50bc4d2ab3bb to your computer and use it in GitHub Desktop.
Save po5i/a974efe872e5cc80a2af50bc4d2ab3bb to your computer and use it in GitHub Desktop.
from multiprocessing import Process
from main import get_repos
if __name__ == "__main__":
tasks = []
tasks.append(Process(target=get_repos, args=("python",)))
tasks.append(Process(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