tornado/docs/ioloop.rst

61 lines
1.6 KiB
ReStructuredText
Raw Normal View History

2011-06-11 21:48:46 +00:00
``tornado.ioloop`` --- Main event loop
======================================
.. 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
.. automethod:: IOLoop.initialized
2011-09-04 22:39:55 +00:00
.. automethod:: IOLoop.install
2014-04-27 00:13:46 +00:00
.. automethod:: IOLoop.clear_instance
2011-06-17 07:16:40 +00:00
.. automethod:: IOLoop.start
2011-09-04 22:39:55 +00:00
.. automethod:: IOLoop.stop
.. 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
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.call_at
.. automethod:: IOLoop.call_later
2011-06-17 07:16:40 +00:00
.. automethod:: IOLoop.remove_timeout
2014-06-20 04:37:11 +00:00
.. automethod:: IOLoop.spawn_callback
.. automethod:: IOLoop.time
2011-06-17 07:16:40 +00:00
.. autoclass:: PeriodicCallback
: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
Methods for subclasses
^^^^^^^^^^^^^^^^^^^^^^
2015-04-19 16:05:29 +00:00
.. automethod:: IOLoop.initialize
.. automethod:: IOLoop.close_fd
.. automethod:: IOLoop.split_fd