[Twisted-Python] A small patch for defer.py
Jp Calderone
exarkun at divmod.com
Sat Apr 16 12:49:37 MDT 2005
On Sat, 16 Apr 2005 18:50:02 +0000, User Paolino <paolo_veronelli at yahoo.it> wrote:
>def deferredReady(value=False,later=0):
> deferred=Deferred()
> reactor.callLater(later,deferred.callback,value)
> return deferred
>
>def generatorLoop(generator,listOfParams,multi=False):
> lista=[]
> for params in listOfParams:
> if multi:
> lista.append(deferredGenerator(generator)(*params))
> else:
> lista.append(deferredGenerator(generator)(params)) return
>DeferredList(lista)
>
What? Also, why?
Jp
More information about the Twisted-Python
mailing list