def deferToThread(f, *args, **kwargs):
    from twisted.internet import reactor
    return deferToThreadPool(reactor, reactor.getThreadPool(),
                             f, *args, **kwargs)
Run a function in a thread and return the result as a Deferred.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/internet/threads.py/deferToThread