[Twisted-Python] I could swear I've seen this pattern *somewhere* in Twisted...

Itamar Shtull-Trauring itamar at itamarst.org
Mon May 9 15:03:16 EDT 2005


On Mon, 2005-05-09 at 13:42 -0400, Mike C. Fletcher wrote:
> I have a little utility module "parallel", that dispatches a callable
> for "count" items in parallel, collecting them as would a DeferredList
> (attached for reference).  The idea here is that you want only count
> items to be actively processing at any given time, and you want to be
> notified when the entire suite of items completes processing (just like
> a DeferredList).

Hm. Would t.i.defer.DeferredSemaphore do what you want? There's also
DeferredQueue (courtesy of JP, 2.0 and later).





More information about the Twisted-Python mailing list