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.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
julia 1.10.10are registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9are registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4are registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationare registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesare registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 2007 页 | 6.73 MB | 3 月前3
julia 1.13.0 DEVare registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive()::Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1are registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4are registering exit hooks from background Tasks that may still be executing concurrently during shutdown. source Base.isinteractive – Function. isinteractive() -> Bool Determine whether Julia is running an I/O stream. Performs a flush first. source Base.closewrite – Function. closewrite(stream) Shutdown the write half of a full-duplex I/O stream. Performs a flush first. Notify the other end that no0 码力 | 2057 页 | 7.44 MB | 3 月前3
共 13 条
- 1
- 2













