Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- async def grab():
- links = ["one", "two"]
- for link in links:
- yield link
- async def main():
- print("\n ------------------- \n".join([link async for link in grab()]))
- asyncio.get_event_loop().run_until_complete(main())
Add Comment
Please, Sign In to add comment