Tornado 4.3 发布

2015-11-07 19:53:58 +08:00
 Gem
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
4944 次点击
所在节点    Tornado
1 条回复
wingyiu
2015-11-08 11:41:49 +08:00
nice jj, 就 tornado 而言 async/await 语法比 yield 要好理解

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/234457

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX