Public Member Functions | |
def | __init__ |
def | addReader |
def | addWriter |
def | callFromThread |
def | callLater |
def | crash |
def | doIteration |
def | getDelayedCalls |
def | getReaders |
def | getWriters |
def | installWaker |
def | mainLoop |
def | removeAll |
def | removeReader |
def | removeWriter |
def | seconds |
def | stop |
def | wakeUp |
Private Member Functions | |
def | _invoke_callback |
def | _removeDelayedCall |
Private Attributes | |
_delayedCalls | |
_fds | |
_io_loop | |
_readers | |
_writers |
Twisted reactor built on the Tornado IOLoop. Since it is intented to be used in applications where the top-level event loop is ``io_loop.start()`` rather than ``reactor.run()``, it is implemented a little differently than other Twisted reactors. We override `mainLoop` instead of `doIteration` and must implement timed call functionality on top of `IOLoop.add_timeout` rather than using the implementation in `PosixReactorBase`.
Definition at line 116 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.__init__ | ( | self, | |
io_loop = None |
|||
) |
Definition at line 128 of file twisted.py.
def tornado.platform.twisted.TornadoReactor._invoke_callback | ( | self, | |
fd, | |||
events | |||
) | [private] |
Definition at line 178 of file twisted.py.
def tornado.platform.twisted.TornadoReactor._removeDelayedCall | ( | self, | |
dc | |||
) | [private] |
Definition at line 158 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.addReader | ( | self, | |
reader | |||
) |
Add a FileDescriptor for notification of data available to read.
Definition at line 203 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.addWriter | ( | self, | |
writer | |||
) |
Add a FileDescriptor for notification of data available to write.
Definition at line 223 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.callFromThread | ( | self, | |
f, | |||
args, | |||
kw | |||
) |
See `twisted.internet.interfaces.IReactorThreads.callFromThread`
Definition at line 163 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.callLater | ( | self, | |
seconds, | |||
f, | |||
args, | |||
kw | |||
) |
Definition at line 150 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.crash | ( | self | ) |
Definition at line 292 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.doIteration | ( | self, | |
delay | |||
) |
Definition at line 296 of file twisted.py.
Definition at line 155 of file twisted.py.
Definition at line 279 of file twisted.py.
Definition at line 282 of file twisted.py.
Definition at line 171 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.mainLoop | ( | self | ) |
Definition at line 299 of file twisted.py.
Definition at line 276 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.removeReader | ( | self, | |
reader | |||
) |
Remove a Selectable for notification of data available to read.
Definition at line 242 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.removeWriter | ( | self, | |
writer | |||
) |
Remove a Selectable for notification of data available to write.
Definition at line 259 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.seconds | ( | self | ) |
Definition at line 147 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.stop | ( | self | ) |
Definition at line 288 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.wakeUp | ( | self | ) |
Definition at line 174 of file twisted.py.
Definition at line 128 of file twisted.py.
Definition at line 128 of file twisted.py.
Definition at line 128 of file twisted.py.
Definition at line 128 of file twisted.py.
Definition at line 128 of file twisted.py.