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/e4eaef62d4373cdade9c87edacdcc05d to your computer and use it in GitHub Desktop.
Save po5i/e4eaef62d4373cdade9c87edacdcc05d to your computer and use it in GitHub Desktop.
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