Created
July 1, 2022 18:42
-
-
Save po5i/e4eaef62d4373cdade9c87edacdcc05d 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
import asyncio | |
from main import get_repos_async | |
async def bulk_get_repos_async() -> None: | |
tasks = [] | |
tasks.append(get_repos_async("python")) | |
tasks.append(get_repos_async("globant")) | |
await asyncio.gather(*tasks) | |
if __name__ == "__main__": | |
asyncio.run(bulk_get_repos_async()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment