On Wed, Oct 26, 2011 at 11:08 AM, Jason Rennie <[email protected]> wrote:
> First off, have you read http://jcalderone.livejournal.com/24285.html ? >> If not, do. Take note of the line >> >> work = (callable(elem, *args, **named) for elem in iterable) >> >> work is a generator. Make sure you understand every line of that code :-) >> > > I don't see anything in task.Cooperator to limit the # of > simultaneously-running tasks. Am I missing something? I guess, > technically, could write my own scheduler that limits the # of > simultaneously-running tasks. But, then task.Cooperator isn't really doing > anything useful for me. > Sorry, I didn't realize that the Cooperators were all being given a reference to the same generator. That's a useful pattern. Jason
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
