twisted.web.test.test_wsgi.SynchronousReactorThreads
class documentationtwisted.web.test.test_wsgi
(View In Hierarchy)
A single-threaded implementation of part of the IReactorThreads
interface. This implementation assumes that it will only be invoked from
the reactor thread, so it calls functions synchronously rather than trying
to schedule them to run in the reactor thread. It is used in conjunction
with SynchronousThreadPool
to make the tests which are not directly for thread-related behavior
deterministic.
Method | callFromThread | Call f(*a, **kw) in this thread which should also be the
reactor thread. |