[Twisted-Python] Re: flow.Zip

Clark C. Evans cce at clarkevans.com
Tue Apr 22 20:54:43 EDT 2003

On Tue, Apr 22, 2003 at 09:54:30PM +0200, Philippe Lafoucrière wrote:
| just a mail to remind you to code flow.zip.


| Hmm, By the way, Cooperate() isn't clear, even with the doc... :-(
| could you explain me that please ?

Cooperate() is called when an iterator would block, thus,
the flow module allows other tasks (connections, users)
to continue.   If you look at the source for flow.Threaded
you will see that it raises Cooperate() when the database
hasn't produced data yet.

More information about the Twisted-Python mailing list