美文网首页
Sleep in python asyncio

Sleep in python asyncio

作者: hzmangel | 来源:发表于2017-05-01 17:02 被阅读29次
    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

    相关文章

      网友评论

          本文标题:Sleep in python asyncio

          本文链接:https://www.haomeiwen.com/subject/jxzftxtx.html