1``tornado.gen`` --- Generator-based coroutines
2==============================================
3
4.. testsetup::
5
6   from tornado.web import *
7   from tornado import gen
8
9.. automodule:: tornado.gen
10
11   Decorators
12   ----------
13
14   .. autofunction:: coroutine
15
16   .. autoexception:: Return
17
18   Utility functions
19   -----------------
20
21   .. autofunction:: with_timeout(timeout: Union[float, datetime.timedelta], future: Yieldable, quiet_exceptions: Union[Type[Exception], Tuple[Type[Exception], ...]] = ())
22
23   .. autofunction:: sleep
24
25   .. autoclass:: WaitIterator
26      :members:
27
28   .. autofunction:: multi(Union[List[Yieldable], Dict[Any, Yieldable]], quiet_exceptions: Union[Type[Exception], Tuple[Type[Exception], ...]] = ())
29
30   .. autofunction:: multi_future(Union[List[Yieldable], Dict[Any, Yieldable]], quiet_exceptions: Union[Type[Exception], Tuple[Type[Exception], ...]] = ())
31
32   .. autofunction:: convert_yielded
33
34   .. autofunction:: maybe_future
35
36   .. autofunction:: is_coroutine_function
37
38   .. autodata:: moment
39      :annotation:
40