Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. i have function
  2.  
  3. aync def futures()
  4.     fo = await fetchdata
  5.     await exchange.close
  6. asunc def anotherfun()
  7.     asyncio.get_event_loop().run_unitl_complete(futrues())
  8.  
  9. while:
  10.     data = asyncio.get_event_loop().run_unitl_complete(futrues())
  11.     asyncio.get_event_loop().run_unitl_complete(anotherfun())
  12.  
  13. RuntimeError: This event loop is already running
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement