Tornado 6.5 Documentation
it is not a focus of development and most applications should be written to use Tornado’s own interfaces (such as tornado.web) directly instead of using WSGI. In general, Tornado code is not thread-safe which do every- thing they are going to do before returning). There are many styles of asynchronous interfaces: • Callback argument • Return a placeholder (Future, Promise, Deferred) • Deliver to a queue fetch("http://friendfeed-api.com/v2/feed/bret") json = tornado.escape.json_decode(response.body) self.write("Fetched " + str(len(json["entries"])) + " entries " "from the FriendFeed API") 26 Chapter 6. DocumentationTornado0 码力 | 272 页 | 1.12 MB | 2 月前3Tornado 6.5 Documentation
it is not a focus of development and most applications should be written to use Tornado’s own interfaces (such as tornado.web) directly instead of using WSGI. In general, Tornado code is not thread-safe which do everything they are going to do before returning). There are many styles of asynchronous interfaces: Callback argument Return a placeholder (Future, Promise, Deferred) Deliver to a queue Callback http = tornado.httpclient.AsyncHTTPClient() response = await http.fetch("http://friendfeed- api.com/v2/feed/bret") json = tornado.escape.json_decode(response.body) self.write("Fetched0 码力 | 437 页 | 405.14 KB | 2 月前3Rust 程序设计语言 简体中文版 1.85.0
match 表达式和 if let 控 制流结构。在 Rust 中,创建自定义类型需要用到结构体和枚举。 第七章介绍 Rust 的模块(module)系统,其中的私有性规则用来组织代码和公开的 API(应 用程序接口)。第八章讨论标准库提供的常见集合数据结构,例如 Vector(向量)、字符串和 Hash Map(散列表)。第九章探索 Rust 的错误处理的理念与技术。 第十章深入介绍泛型(generic)、Trait rustup doc 在浏览器中查看本地 文档。 任何时候,如果你拿不准标准库中的类型或函数的用途和用法,请查阅应用程序接口 (application programming interface,API)文档! 文本编辑器和集成开发环境(Integrated Development Environments, IDE) 本书不会假设你使用何种工具来编写 Rust 代码。几乎任何文本编辑器都可以搞定!然而,很 的简写,它表示任何至少是 0.8.5 但小于 0.9.0 的版本。 Cargo 认为这些版本与 0.8.5 版本的公有 API 相兼容,这样的版本指定确保了我们可以获取 能使本章代码编译的最新的补丁(patch)版本。任何大于等于 0.9.0 的版本不能保证和接下 来的示例采用了相同的 API。 现在,不修改任何代码,构建项目,如示例 2-2 所示。 $ cargo build Updating crates0 码力 | 562 页 | 3.23 MB | 9 天前3
共 3 条
- 1