2013-03-15 03:45:48 +00:00
|
|
|
``tornado.concurrent`` --- Work with threads and futures
|
|
|
|
========================================================
|
|
|
|
|
|
|
|
.. automodule:: tornado.concurrent
|
|
|
|
:members:
|
2014-04-27 00:13:46 +00:00
|
|
|
:exclude-members: Future, TracebackFuture
|
2013-03-17 17:42:12 +00:00
|
|
|
|
2014-04-27 00:13:46 +00:00
|
|
|
.. autoclass:: Future
|
2013-03-17 17:42:12 +00:00
|
|
|
|
2014-04-27 00:13:46 +00:00
|
|
|
Consumer methods
|
|
|
|
^^^^^^^^^^^^^^^^
|
2013-03-17 17:42:12 +00:00
|
|
|
|
2014-04-27 00:13:46 +00:00
|
|
|
.. 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
|
2013-03-17 17:42:12 +00:00
|
|
|
|
2014-04-27 00:13:46 +00:00
|
|
|
Producer methods
|
|
|
|
^^^^^^^^^^^^^^^^
|
2013-03-17 17:42:12 +00:00
|
|
|
|
2014-04-27 00:13:46 +00:00
|
|
|
.. automethod:: Future.set_result
|
|
|
|
.. automethod:: Future.set_exception
|
|
|
|
.. automethod:: Future.set_exc_info
|