1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
``tornado.concurrent`` --- Work with threads and futures
========================================================
.. testsetup::
from tornado.concurrent import *
from tornado import gen
.. automodule:: tornado.concurrent
:members:
:exclude-members: Future, TracebackFuture
.. autoclass:: Future
Consumer methods
^^^^^^^^^^^^^^^^
.. automethod:: Future.result
.. automethod:: Future.exception
.. automethod:: Future.exc_info
.. automethod:: Future.add_done_callback
.. automethod:: Future.done
.. automethod:: Future.running
.. automethod:: Future.cancel
.. automethod:: Future.cancelled
Producer methods
^^^^^^^^^^^^^^^^
.. automethod:: Future.set_result
.. automethod:: Future.set_exception
.. automethod:: Future.set_exc_info
|