Tornado 6.0 Documentation
run_sync method. This is often used to 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: await workers if __name__ == "__main__": io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) Structure of a Tornado web application A Tornado web application generally consists of one module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class0 码力 | 869 页 | 692.83 KB | 1 年前3
Tornado 6.1 Documentation
run_sync method. This is often used to 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: await workers if __name__ == "__main__": io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) Structure of a Tornado web application A Tornado web application generally consists of one module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class0 码力 | 931 页 | 708.03 KB | 1 年前3
Tornado 6.1 Documentation
IOLoop with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: 6.1. User’s guide 17 Tornado Documentation, Release 6.1 # run_sync() doesn't take arguments arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling blocking functions The simplest way to call a blocking function from a coroutine put(None) await workers if __name__ == "__main__": io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists0 码力 | 245 页 | 904.24 KB | 1 年前3
Tornado 5.1 Documentation
with the IOLoop.run_sync method. This is often used to start the main function of a batch-oriented program: 5.1. User’s guide 15 Tornado Documentation, Release 5.1.1 # run_sync() doesn't take arguments arguments, so we must wrap the # call in a lambda. IOLoop.current().run_sync(lambda: divide(1, 0)) Coroutine patterns Calling blocking functions The simplest way to call a blocking function from a coroutine put(None) await workers if __name__ == '__main__': io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) 5.1.5 Structure of a Tornado web application A Tornado web application generally consists0 码力 | 243 页 | 895.80 KB | 1 年前3
Tornado 6.0 Documentation
run_sync method. This is often used to 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: put(None) await workers if __name__ == "__main__": io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) 6.1.5 Structure of a Tornado web application A Tornado web application generally consists module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class0 码力 | 245 页 | 885.76 KB | 1 年前3
Tornado 4.5 Documentation
run_sync method. This is often used to 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: '__main__': import logging logging.basicConfig() io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) Structure of a Tornado web application A Tornado web application generally consists of one module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class0 码力 | 333 页 | 322.34 KB | 1 年前3
Tornado 4.5 Documentation
run_sync method. This is often used to 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: Release 4.5.3 import logging logging.basicConfig() io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) 4.1.5 Structure of a Tornado web application A Tornado web application generally consists module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class0 码力 | 222 页 | 833.04 KB | 1 年前3
Tornado 5.1 Documentation
run_sync method. This is often used to 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: await workers if __name__ == '__main__': io_loop = ioloop.IOLoop.current() io_loop.run_sync(main) Structure of a Tornado web application A Tornado web application generally consists of one module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class0 码力 | 359 页 | 347.32 KB | 1 年前3
Tornado 6.4 Documentation
run_sync method. This is often used to 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: Tornado Documentation, Release 6.4 When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class shared by two implementations, simple_httpclient and curl_httpclient. Applications may either instantiate their chosen implementation class directly or use the AsyncHTTPClient class from this module,0 码力 | 268 页 | 1.09 MB | 1 年前3
Tornado 6.2 Documentation
run_sync method. This is often used to 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: module docs for more information). When we receive requests, we iterate over the list in order and instantiate an instance of the first request class whose regexp matches the request path. The request class shared by two implementations, simple_httpclient and curl_httpclient. Applications may either instantiate their chosen implementation class directly or use the AsyncHTTPClient class from this module,0 码力 | 260 页 | 1.06 MB | 1 年前3
共 20 条
- 1
- 2













