Created
July 1, 2022 18:42
-
-
Save po5i/a974efe872e5cc80a2af50bc4d2ab3bb 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 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