Commit Graph

7 Commits

Author SHA1 Message Date
Ben Darnell b909d37e54 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.
2022-06-03 14:50:20 -04:00
Ben Darnell 1e9a709111 demos: Format all the demos with `black` 2018-11-02 12:56:28 -04:00
Jehiah Czebotar 8906b3afd8 make executable bit and shebang consistent on various source files
setup.py is intended to be run with "python setup.py install"

sources in the tornado module which have main functions/clauses
are intended to be run with "python -m tornado.xxx"

various demos and scripts can be run directly
2018-01-06 20:35:44 -05:00
Pierce Lopez 7e2fef9fb1 style fix: 2 blank lines around top-level class and function defs
flake8 codes E302 and E305
2018-01-01 15:57:42 -05:00
Ben Darnell 4f86890cfa Add make_current keyword argument to IOLoop constructor.
This allows applications to create an IOLoop to be started in another
thread without making it current in the originating thread.

Update docs to use IOLoop.current() in place of IOLoop.instance() when
starting the loop.

Closes #1390.
2015-03-29 16:31:06 -04:00
Kouki Saito 73c8c218c5 Delete description for cookie capacity 2014-04-09 19:31:27 +09:00
Ben Darnell 9298756eec Add a simple end-to-end demo of TwitterMixin. 2013-05-31 21:46:53 -04:00