2011-06-11 21:48:46 +00:00
|
|
|
``tornado.ioloop`` --- Main event loop
|
|
|
|
======================================
|
2011-06-09 06:58:58 +00:00
|
|
|
|
|
|
|
.. automodule:: tornado.ioloop
|
2011-06-17 07:16:40 +00:00
|
|
|
|
|
|
|
IOLoop objects
|
|
|
|
--------------
|
|
|
|
|
|
|
|
.. autoclass:: IOLoop
|
|
|
|
|
|
|
|
Running an IOLoop
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. automethod:: IOLoop.instance
|
2011-06-19 18:23:53 +00:00
|
|
|
.. automethod:: IOLoop.initialized
|
2011-09-04 22:39:55 +00:00
|
|
|
.. automethod:: IOLoop.install
|
2011-06-17 07:16:40 +00:00
|
|
|
.. automethod:: IOLoop.start
|
2011-09-04 22:39:55 +00:00
|
|
|
.. automethod:: IOLoop.stop
|
|
|
|
.. automethod:: IOLoop.close
|
2011-06-17 07:16:40 +00:00
|
|
|
|
|
|
|
I/O events
|
|
|
|
^^^^^^^^^^
|
|
|
|
|
|
|
|
.. automethod:: IOLoop.add_handler
|
|
|
|
.. automethod:: IOLoop.update_handler
|
|
|
|
.. automethod:: IOLoop.remove_handler
|
|
|
|
|
|
|
|
Timeouts
|
|
|
|
^^^^^^^^
|
|
|
|
|
|
|
|
.. automethod:: IOLoop.add_callback
|
2012-09-29 23:57:04 +00:00
|
|
|
.. automethod:: IOLoop.add_callback_from_signal
|
|
|
|
.. automethod:: IOLoop.add_future
|
2011-06-17 07:16:40 +00:00
|
|
|
.. automethod:: IOLoop.add_timeout
|
|
|
|
.. automethod:: IOLoop.remove_timeout
|
|
|
|
.. autoclass:: PeriodicCallback
|
2011-06-19 18:23:53 +00:00
|
|
|
:members:
|
2011-06-17 07:16:40 +00:00
|
|
|
|
|
|
|
Debugging and error handling
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. automethod:: IOLoop.handle_callback_exception
|
|
|
|
.. automethod:: IOLoop.set_blocking_signal_threshold
|
|
|
|
.. automethod:: IOLoop.set_blocking_log_threshold
|
|
|
|
.. automethod:: IOLoop.log_stack
|