Tornado 5.1 Documentation
User’s guide 15 Tornado Documentation, Release 5.1.1 # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling class is also available under the name tornado.web.url. Decorators tornado.web.asynchronous(method) Wrap request handler methods with this if they are asynchronous. 5.2. Web framework 51 Tornado Documentation be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. 5.2. Web framework 59 Tornado Documentation, Release 5.1.1 {% extends0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 4.5 Documentation
in a yield-based coroutine you can yield a list of Futures, while in a native coroutine you must wrap the list in tornado.gen.multi. This also eliminates the integration with concurrent.futures. You can start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Interaction Interaction with callbacks To interact with asynchronous code that uses callbacks instead of Future, wrap the call in a Task. This will add the callback argument for you and return a Future which you can0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 6.1 Documentation
User’s guide 17 Tornado Documentation, Release 6.1 # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. 60 Chapter 6. Documentation Tornado Documentation, Release 6.1 {% with older versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 6.0 Documentation
start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. 6.2. Web framework 61 Tornado Documentation, Release 6.0.4 {% extends with older versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 6.4 Documentation
start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. {% extends *filename* %} Inherit from another template. Templates versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.SSLContext.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. {% extends *filename* %} Inherit from another template. Templates with older versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 260 页 | 1.06 MB | 1 年前3
Tornado 6.4 Documentation
start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. {% extends *filename* %} Inherit from another template. Templates versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.SSLContext.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.4 Documentation
start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. {% extends *filename* %} Inherit from another template. Templates versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.SSLContext.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.3 Documentation
start the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. {% extends *filename* %} Inherit from another template. Templates with older versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 264 页 | 1.06 MB | 1 年前3
Tornado 6.5 Documentationstart the main function of a batch-oriented program: # run_sync() doesn't take arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling be removed from the template output. Note that there is no {% end %} tag; the comment goes from the word comment to the closing %} tag. {% extends *filename* %} Inherit from another template. Templates versions of Python ssl_options may also be a dictionary of keyword arguments for the ssl.SSLContext.wrap_socket method.: ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH) ssl_ctx.load_cert_chain(os0 码力 | 272 页 | 1.12 MB | 3 月前3
共 20 条
- 1
- 2













