[Twisted-Python] process timing / idle handler

Jasper jasper at peak.org
Wed Sep 14 18:04:37 MDT 2005


Jp Calderone wrote:

> Take a look at 
> <http://divmod.org/svn/Divmod/trunk/Epsilon/epsilon/cooperator.py>.  
> It's intended to be used with time-consumed tasks implemented as 
> iterators.  By using a single Cooperator, the amount of work you 
> arrange to have performed per unit of network activity is limited, 
> regardless of the number of different tasks outstanding.

Thanks for the link! I'd been considering something similar (but with 
generators), and it's good food for thought.

-Jasper




More information about the Twisted-Python mailing list