V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Tornado Documentation
http://www.v2ex.com/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
Gem
V2EX  ›  Tornado

Tornado 4.3 发布

  •  1
     
  •   Gem · 2015-11-07 19:53:58 +08:00 · 5026 次点击
    这是一个创建于 3295 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Highlights: The new async/await keywords in Python 3.5 are supported.

    In most cases, async def can be used in place of the @gen.coroutine decorator. Inside a function defined with async def, use await instead of yield to wait on an asynchronous operation. Coroutines defined with async/await will be faster than those defined with @gen.coroutine and yield.

    But do not support some features including Callback/Wait or the ability to yield a Twisted Deferred. See the users ’ guide for more.


    http://www.tornadoweb.org/en/stable/releases/v4.3.0.html
    1 条回复    2015-11-08 11:41:49 +08:00
    wingyiu
        1
    wingyiu  
       2015-11-08 11:41:49 +08:00
    nice jj, 就 tornado 而言 async/await 语法比 yield 要好理解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5301 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 07:21 · PVG 15:21 · LAX 23:21 · JFK 02:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.