A single-threaded implementation of part of the ThreadPool interface. This implementation calls functions synchronously rather than running them in a thread pool. It is used to make the tests which are not directly for thread-related behavior deterministic.

Method callInThread Call f(*a, **kw) in this thread rather than scheduling it to be called in a thread.
def callInThread(self, f, *a, **kw):

Call f(*a, **kw) in this thread rather than scheduling it to be called in a thread.

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