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 141 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.__init__ | ( | self, | |
io_loop = None |
|||
) |
Definition at line 151 of file twisted.py.
def tornado.platform.twisted.TornadoReactor._invoke_callback | ( | self, | |
fd, | |||
events | |||
) | [private] |
Definition at line 206 of file twisted.py.
def tornado.platform.twisted.TornadoReactor._removeDelayedCall | ( | self, | |
dc | |||
) | [private] |
Definition at line 182 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 233 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 253 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.callFromThread | ( | self, | |
f, | |||
args, | |||
kw | |||
) |
See `twisted.internet.interfaces.IReactorThreads.callFromThread`
Definition at line 187 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.callLater | ( | self, | |
seconds, | |||
f, | |||
args, | |||
kw | |||
) |
Definition at line 174 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.crash | ( | self | ) |
Definition at line 323 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.doIteration | ( | self, | |
delay | |||
) |
Definition at line 327 of file twisted.py.
Definition at line 179 of file twisted.py.
Definition at line 309 of file twisted.py.
Definition at line 312 of file twisted.py.
Definition at line 199 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.mainLoop | ( | self | ) |
Definition at line 330 of file twisted.py.
Definition at line 306 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 272 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 289 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.seconds | ( | self | ) |
Definition at line 171 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.stop | ( | self | ) |
Definition at line 318 of file twisted.py.
def tornado.platform.twisted.TornadoReactor.wakeUp | ( | self | ) |
Definition at line 202 of file twisted.py.
Definition at line 151 of file twisted.py.
Definition at line 151 of file twisted.py.
Definition at line 151 of file twisted.py.
Definition at line 151 of file twisted.py.
Definition at line 151 of file twisted.py.