tornado/docs/concurrent.rst

28 lines
734 B
ReStructuredText

``tornado.concurrent`` --- Work with threads and futures
========================================================
.. 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