[Twisted-Python] Lock class using Deferreds
radix at twistedmatrix.com
Fri Mar 5 18:34:44 EST 2004
Andrew Bennetts wrote:
> On Fri, Mar 05, 2004 at 11:19:01AM -0500, Itamar Shtull-Trauring wrote:
>> """A lock for event driven systems."""
> I have very very similiar looking code on my harddisk... what inspired you
> to write this? :)
I have something vaguely similar too; a class that handled a 'pipeline'
(?) of Deferreds and didn't allow more than N at a time. My purpose for
it was doing several thousand DNS queries and I only wanted at most N
outstanding requests at a time, so I wouldn't overload the servers. Ok,
so it's not that similar, but it's something that would probably go in
the same module ;-)
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040305/95b545ff/attachment.pgp
More information about the Twisted-Python