Still isn't working for me:
#!/usr/bin/env python
from twisted.internet import reactor
from twisted.internet import threads
def aSillyBlockingMethod(x):
import time
time.sleep(2)
print x
d = threads.deferToThread(aSillyBlockingMethod, "2 seconds have passed")
d.addBoth(lambda _: reactor.stop())
Does this work for you?