def callFromThread(self, callback, *args, **kwargs):
    '\n        Make the callback fire in the next reactor iteration.\n        '
    d = Deferred()
    d.addCallback((lambda x: callback(*args, **kwargs)))
    self.callLater(0, d.callback, True)
    return d
Make the callback fire in the next reactor iteration.
def callFromThread(self, callback, *args, **kwargs):
    '\n        \n        '
    d = Deferred()
    d.addCallback((lambda x: callback(*args, **kwargs)))
    self.callLater(0, d.callback, True)
    return d