Sleep in python asyncio

2017-05-01  本文已影响29人  hzmangel
  1. Do not use time.sleep, or the whole program will be hang. Uses asyncio.sleep instead.
  2. Remember to add await in front of asyncio.sleep
  3. Of course, warp code in async block as a corouting
上一篇下一篇

猜你喜欢

热点阅读