Guest User

Untitled

a guest
Apr 25th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. import asyncio
  2.  
  3. async def grab():
  4.     links = ["one", "two"]
  5.  
  6.     for link in links:
  7.         yield link
  8.  
  9. async def main():
  10.     print("\n ------------------- \n".join([link async for link in grab()]))
  11.  
  12. asyncio.get_event_loop().run_until_complete(main())
Add Comment
Please, Sign In to add comment