]> git.ipfire.org Git - thirdparty/tornado.git/commit
Update chat demo to be more exemplary.
authorBen Darnell <ben@bendarnell.com>
Sat, 16 Mar 2013 04:52:04 +0000 (00:52 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 16 Mar 2013 04:52:04 +0000 (00:52 -0400)
commit974c229c8bf553fb1e07264aca369306e2c38a79
tree60ef62756378ce4a5b2cd9a1ac6ee2681e5aa0c9
parent53fc8fd3ded09d41250d5c140f889b5979b19246
Update chat demo to be more exemplary.

Use gen.coroutine in auth handler (but not in wait_for_messages
because it makes things less clear and we don't have good cancellation
support).  No more mixin.  Python 3 compatible.
demos/chat/chatdemo.py