Home  >  Q&A  >  body text

tornado - python使用yield是否能保证协程的顺序性?

最近在研究tornado的单线程异步原理,现想知道yield能否保证协程被调用的顺序?有大神帮忙解答一下么

天蓬老师天蓬老师2765 days ago585

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-18 10:34:18

    Coroutines are called sequentially, of course. I don’t know which dimension you are asking about?

    reply
    0
  • Cancelreply