Tornado 6.2 Documentation
thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but HTTP (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to generally return placeholder objects (Futures), with the exception of some low-level components like the IOLoop that use callbacks. Futures are usually transformed into their result with the await or yield keywords0 码力 | 407 页 | 385.03 KB | 2 年前3
Tornado 6.4 Documentation
thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but HTTP (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to generally return placeholder objects (Futures), with the exception of some low-level components like the IOLoop that use callbacks. Futures are usually transformed into their result with the await or yield keywords0 码力 | 432 页 | 402.58 KB | 2 年前3
Tornado 6.4 Documentation
thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but HTTP (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to generally return placeholder objects (Futures), with the exception of some low-level components like the IOLoop that use callbacks. Futures are usually transformed into their result with the await or yield keywords0 码力 | 432 页 | 402.58 KB | 2 年前3
Tornado 6.5 Documentationthread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but HTTP (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to generally return placeholder objects (Futures), with the exception of some low-level components like the IOLoop that use callbacks. Futures are usually transformed into their result with the await or yield keywords0 码力 | 437 页 | 405.14 KB | 10 月前5
Tornado 6.4 Documentation
thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but HTTP (HTTPServer and AsyncHTTPClient). - An asynchronous networking library including the classes IOLoop and IOStream, which serve as the building blocks for the HTTP components and can also be used to generally return placeholder objects (Futures), with the exception of some low-level components like the IOLoop that use callbacks. Futures are usually transformed into their result with the await or yield keywords0 码力 | 432 页 | 402.58 KB | 2 年前3
Tornado 5.1 Documentation
Wiki Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self ]) if __name__ == __main__.__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but0 码力 | 243 页 | 895.80 KB | 2 年前3
Tornado 6.0 Documentation
Wiki ## HELLO, WORLD Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self ]) if __name__ == __main__.__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but0 码力 | 245 页 | 885.76 KB | 2 年前3
Tornado 6.1 Documentation
Wiki Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self ]) if __name__ == __main__.__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but0 码力 | 245 页 | 904.24 KB | 2 年前3
Tornado 4.5 Documentation
Wiki Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self ]) if __name__ == __main__.__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that recommended only for development use. Without reworking Tornado IOLoop interface, it's not possible to add a native Tornado Windows IOLoop implementation or leverage Windows' IOCP support from frameworks0 码力 | 222 页 | 833.04 KB | 2 年前3
Tornado 5.1 Documentation
] ## Hello, world Here is a simple “Hello, world” example web app for Tornado: import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self ]) if __name__ == "__main__": app = make_app() app.listen(8888) tornado.ioloop.IOLoop.current().start() This example does not use any of Tornado’s asynchronous features; for that thread-safe. The only method in Tornado that is safe to call from other threads is IOLoop.add_callback. You can also use IOLoop.run_in_executor to asynchronously run a blocking function on another thread, but0 码力 | 359 页 | 347.32 KB | 2 年前3
共 173 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
相关搜索词
TornadoAsynchronousIOLoopWebSocketHTTPTornado 6.4HTTPClientasyncioPython 3.8pycurllibcurlDeprecationCallbackType AnnotationPython Compatibilitytornado.httpclienttornado.iolooptornado.tcpclienttornado.webtornado.testingTornado框架异步网络库HTTP服务器Web框架协程库异步非阻塞I/OHTTP服务器和客户端协程Python Web FrameworkAsynchronous NetworkingHTTP ServerCoroutine Library长连接版本5.1弃用接口Python版本支持模块更新













