Tornado 6.4 Documentation
(continued from previous page) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main coroutine function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is datetime objects. tornado.platform.asyncio • The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run or asyncio.loop.shutdown_asyncgens to avoid leaking the thread. • Introduced0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.4 Documentation
(continued from previous page) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main coroutine function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is datetime objects. tornado.platform.asyncio • The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run or asyncio.loop.shutdown_asyncgens to avoid leaking the thread. • Introduced0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.4 Documentation
(continued from previous page) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main coroutine function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is datetime objects. tornado.platform.asyncio • The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run or asyncio.loop.shutdown_asyncgens to avoid leaking the thread. • Introduced0 码力 | 268 页 | 1.09 MB | 1 年前3
 Tornado 6.5 Documentation(continued from previous page) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main coroutine function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is datetime objects. tornado.platform.asyncio • The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run or asyncio.loop.shutdown_asyncgens to avoid leaking the thread. • Introduced0 码力 | 272 页 | 1.12 MB | 3 月前3
 Tornado 6.4 Documentation
MainHandler), ]) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is asyncio The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run [https://docs.python.org/3/library/asyncio-runner.html#asyncio.run] or asyncio.loop.shutdown_asyncgens [https://docs0 码力 | 432 页 | 402.58 KB | 1 年前3
 Tornado 6.4 Documentation
MainHandler), ]) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is asyncio The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run [https://docs.python.org/3/library/asyncio-runner.html#asyncio.run] or asyncio.loop.shutdown_asyncgens [https://docs0 码力 | 432 页 | 402.58 KB | 1 年前3
 Tornado 6.4 Documentation
MainHandler), ]) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is asyncio The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run [https://docs.python.org/3/library/asyncio-runner.html#asyncio.run] or asyncio.loop.shutdown_asyncgens [https://docs0 码力 | 432 页 | 402.58 KB | 1 年前3
 Tornado 6.5 Documentation]) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit).The Application object The Application object is responsible asyncio The shutdown protocol for AddThreadSelectorEventLoop now requires the use of asyncio.run [https://docs.python.org/3/library/asyncio-runner.html#asyncio.run] or asyncio.loop.shutdown_asyncgens [https://docs0 码力 | 437 页 | 405.14 KB | 3 月前3
 Tornado 6.2 Documentation
from previous page) ]) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main coroutine function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is timedelta objects in addition to numbers of milliseconds. • Avoid logging “Event loop is closed” during shutdown-related race conditions. • Tornado no longer calls logging.basicConfig when starting an IOLoop;0 码力 | 260 页 | 1.06 MB | 1 年前3
 Tornado 6.3 Documentation
(continued from previous page) async def main(): app = make_app() app.listen(8888) shutdown_event = asyncio.Event() await shutdown_event.wait() if __name__ == "__main__": asyncio.run(main()) The main coroutine function run forever. (and if you wish to have main exit early as a part of a graceful shutdown procedure, you can call shutdown_event.set() to make it exit). The Application object The Application object is timedelta objects in addition to numbers of milliseconds. • Avoid logging “Event loop is closed” during shutdown-related race conditions. • Tornado no longer calls logging.basicConfig when starting an IOLoop;0 码力 | 264 页 | 1.06 MB | 1 年前3
共 20 条
- 1
 - 2
 













