Commit Graph

22 Commits

Author SHA1 Message Date
Ben Darnell 9b30cb2f03 gen: Update docs 2018-12-30 15:14:36 -05:00
Ben Darnell 432473e321 docs: Doc and lint updates
Just enough to unbreak the build for now.
2018-07-14 16:58:48 -04:00
Ben Darnell a174578dfa gen: Doc touchups 2018-03-18 23:33:04 -04:00
Ben Darnell a596a0d733 docs: Updates for 5.0 2018-03-04 17:50:58 -05:00
Ben Darnell edf1232c35 ioloop,gen: Unify TimeoutErrors
Fixes #1929
2017-06-10 18:29:26 -04:00
Antoine Pitrou e068d99cbf Improve introspection of coroutines 2016-11-15 12:35:29 +01:00
Ben Darnell 52f94d0067 Deprecate gen.maybe_future and remove all internal uses.
This allows native coroutines in the HTTPMessageDelegate.data_received
methods.
2015-10-03 22:28:14 -04:00
Ben Darnell addabd5190 Replace `gen.Multi` and `gen.multi_future` with `gen.multi`.
`multi_future` is awkward to type but is much more prominent
in native coroutines. The new function `multi` has a more
convenient name and delegates to either the YieldPoint
or Future version automatically.

For backwards compatibility, `multi_future` is still around,
and `Multi` was renamed to `MultiYieldPoint` so that we don't
have two different objects whose names differ only in case
(`Multi` is now an alias for `multi`).

See #1493.
2015-09-14 23:27:18 -04:00
Ben Darnell 7b2f996734 Update release notes 2015-04-19 12:05:29 -04:00
Ben Darnell b93b8405b3 Make many doc code blocks into sphinx doctests. 2015-02-09 00:19:47 -05:00
Ben Darnell bc786fab84 Fix doc coverage for WaitIterator. 2015-01-24 18:38:18 -05:00
Ben Darnell 615db3ed3c Update release notes and docs. 2015-01-24 18:18:09 -05:00
Ben Darnell b85f775f34 Document convert_yielded. 2015-01-19 12:34:19 -05:00
Ben Darnell 3bcbb55d6c Update gen docs: deemphasize Task, Callback, and Wait. 2014-07-13 18:19:29 -04:00
Ben Darnell 518ecf8370 Make gen.Task a function returning a Future instead of a YieldPoint subclass.
This improves performance of applications that mix Tasks and Futures
by only entering a stack context for the duration of the Tasks. It
also fixes an obscure regression (#1058).  This might get reverted before
the final release if any backwards-compatibility issues turn up, but
since the status quo also had a regression it's worth a try.

Closes #1058.
2014-05-18 23:19:41 -04:00
Ben Darnell 4f0d837ed2 Add gen.moment, a yieldable object that resumes after one IOLoop iteration.
Use this between requests in HTTP1ServerConnection to keep one connection
from monopolizing the IOLoop when there are pipelined (or just fast) requests
available.  This was causing increased variance in benchmarks using "ab -k"
(it also increased throughput, for reasons that are not yet clear, so this
change reduces observed speed in these benchmarks).
2014-05-11 18:49:40 -04:00
Ben Darnell 425a31d2a5 Document all the new HTTP stuff 2014-04-27 00:02:07 -04:00
Anton Ryzhov 15e2812af7 Documentation for yielding dicts 2013-10-17 19:44:09 +04:00
Ben Darnell b5a27a3a2c Document tornado.concurrent.Future.
All internal links now point there instead of to concurrent.future.Futures.
2013-03-17 13:42:12 -04:00
Ben Darnell 53fc8fd3de Rewrite gen docs to make coroutine the primary decorator. 2013-03-16 00:18:46 -04:00
Ben Darnell 6e3c288eb0 Add new methods to docs, found by sphinx coverage extension. 2013-03-14 23:07:58 -04:00
Ben Darnell 5872959a75 Move website/sphinx/ to docs/, remove rest of appengine website dir. 2013-03-10 16:05:20 -04:00