]> git.ipfire.org Git - thirdparty/tornado.git/commit
docs,demos: Update for asyncio.run pattern 3147/head
authorBen Darnell <ben@bendarnell.com>
Fri, 20 May 2022 17:04:24 +0000 (13:04 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 3 Jun 2022 18:50:20 +0000 (14:50 -0400)
commitb909d37e5496a043d115341974eb121e462d9018
tree64fc5034a4ce4d73db109dd51c8570ab51881636
parent43ae5839a56e445dd2d10539718f1e0c8053d995
docs,demos: Update for asyncio.run pattern

Adapt for Python 3.10 deprecation changes by using asyncio.run
instead of IOLoop.start throughout (except for TCPServer multi-process
docs).

Demos have all been changed but I haven't tested all of them.
25 files changed:
demos/blog/blog.py
demos/chat/chatdemo.py
demos/facebook/facebook.py
demos/file_upload/file_receiver.py
demos/file_upload/file_uploader.py
demos/helloworld/helloworld.py
demos/s3server/s3server.py
demos/tcpecho/client.py
demos/tcpecho/server.py
demos/twitter/twitterdemo.py
demos/websocket/chatdemo.py
demos/webspider/webspider.py
docs/guide/coroutines.rst
docs/guide/intro.rst
docs/guide/queues.rst
docs/guide/running.rst
docs/guide/structure.rst
docs/index.rst
tornado/httpserver.py
tornado/ioloop.py
tornado/iostream.py
tornado/locks.py
tornado/queues.py
tornado/web.py
tornado/wsgi.py