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-06-17 07:16:40 +00:00
|
|
|
.. automethod:: IOLoop.start
|
|
|
|
.. automethod:: IOLoop.stop
|
|
|
|
.. automethod:: IOLoop.running
|
|
|
|
|
|
|
|
I/O events
|
|
|
|
^^^^^^^^^^
|
|
|
|
|
|
|
|
.. automethod:: IOLoop.add_handler
|
|
|
|
.. automethod:: IOLoop.update_handler
|
|
|
|
.. automethod:: IOLoop.remove_handler
|
|
|
|
|
|
|
|
Timeouts
|
|
|
|
^^^^^^^^
|
|
|
|
|
|
|
|
.. automethod:: IOLoop.add_callback
|
|
|
|
.. 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
|