tornado_pyuv Module

class gaffer.tornado_pyuv.IOLoop(impl=None, _loop=None)[source]

Bases: object

ERROR = 24
NONE = 0
READ = 1
WRITE = 4
add_callback(callback)[source]
add_handler(fd, handler, events)[source]
add_timeout(deadline, callback)[source]
close(all_fds=False, all_handlers=False)[source]
handle_callback_exception(callback)[source]

This method is called whenever a callback run by the IOLoop throws an exception.

By default simply logs the exception as an error. Subclasses may override this method to customize reporting of exceptions.

The exception itself is not passed explicitly, but is available in sys.exc_info.

static initialized()[source]

Returns true if the singleton instance has been created.

install()[source]

Installs this IOLoop object as the singleton instance.

This is normally not necessary as instance() will create an IOLoop on demand, but you may want to call install to use a custom subclass of IOLoop.

static instance()[source]
log_stack(signal, frame)[source]
remove_handler(fd)[source]
remove_timeout(timeout)[source]
running()[source]

Returns true if this IOLoop is currently running.

set_blocking_log_threshold(seconds)[source]
set_blocking_signal_threshold(seconds, action)[source]
start(run_loop=True)[source]
stop()[source]
update_handler(fd, events)[source]
class gaffer.tornado_pyuv.PeriodicCallback(callback, callback_time, io_loop=None)[source]

Bases: object

start()[source]
stop()[source]
class gaffer.tornado_pyuv.Waker(loop)[source]

Bases: object

wake()[source]
gaffer.tornado_pyuv.install()[source]

Previous topic

util Module

Next topic

httpclient Module

This Page