t.f.c.Block(Controller, Stage) : class documentation

Part of twisted.flow.controller View Source View In Hierarchy

A controller which blocks on Cooperate events

This converts a Stage into an iterable which can be used directly in python for loops and other iteratable constructs. It does this by eating any Cooperate values and sleeping. This is largely helpful for testing or within a threaded environment. It converts other stages into one which does not emit cooperate events, ie:
   [1,2, Cooperate(), 3] => [1,2,3]
Method __init__ Undocumented
Method next fetch the next value from the Stage flow

Inherited from Stage:

Method __iter__ Undocumented
Method _yield executed during a yield statement by previous stage
def __init__(self, stage, *trap): (source)
def next(self): (source)
fetch the next value from the Stage flow
API Documentation for Twisted, generated by pydoctor at 2011-10-27 15:57:47.