V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
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 · Nov 7, 2015 · 5586 views
    This topic created in 3828 days ago, the information mentioned may be changed or developed.
    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 replies    2015-11-08 11:41:49 +08:00
    wingyiu
        1
    wingyiu  
       Nov 8, 2015
    nice jj, 就 tornado 而言 async/await 语法比 yield 要好理解
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2337 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:27 · PVG 13:27 · LAX 22:27 · JFK 01:27
    ♥ Do have faith in what you're doing.