Skip to content

Instantly share code, notes, and snippets.

@dgtlctzn
Created December 3, 2021 16:59
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 dgtlctzn/4476c5c201e2f2c7b04cd69d004c6f17 to your computer and use it in GitHub Desktop.
Save dgtlctzn/4476c5c201e2f2c7b04cd69d004c6f17 to your computer and use it in GitHub Desktop.
Gather
async def request_urls(urls: List[str]):
tasks: List[asyncio.Task] = []
...
return await asyncio.gather(*tasks)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment