'See `twisted.internet.interfaces.IReactorThreads.callFromThread`'

def callFromThread(self, f, *args, **kw):

    assert callable(f), ('%s    is    not    callable' % f)
    with NullContext():
        self._io_loop.add_callback(f, *args, **kw)
