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
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
2013-03-16 15:50:31 +00:00
|
|
|
.. automethod:: IOLoop.current
|
|
|
|
.. automethod:: IOLoop.make_current
|
2011-06-17 07:16:40 +00:00
|
|
|
.. 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
|
2013-03-15 03:07:58 +00:00
|
|
|
.. automethod:: IOLoop.run_sync
|
2011-09-04 22:39:55 +00:00
|
|
|
.. 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
|
|
|
|
|
2012-11-27 02:46:16 +00:00
|
|
|
Callbacks and timeouts
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
2011-06-17 07:16:40 +00:00
|
|
|
|
|
|
|
.. 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
|
2012-11-27 02:46:16 +00:00
|
|
|
.. automethod:: IOLoop.time
|
2011-06-17 07:16:40 +00:00
|
|
|
.. 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
|