Thursday December 25, 2008 at 18:02
[Twisted] From blocking functions to deferred functions « ActiveState Code
The trick is to run the blocking function in a separate thread. Here all the magic is performed by the decorator, deferred, which converts sleep, a blocking function, into a deferred function i.e. a…