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.
def callFromThread(self, f, *a, **kw):

Call f(*a, **kw) in this thread which should also be the reactor thread.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.