Package twisted :: Package flow :: Module stage :: Class Concurrent
[show private | hide private]
[frames | no frames]

Class Concurrent

Instruction --+    
              |    
          Stage --+
                  |
                 Concurrent


Executes stages concurrently

This stage allows two or more stages (branches) to be executed at the same time. It returns each stage as it becomes available. This can be used if you have N callbacks, and you want to yield and wait for the first available one that produces results. Once a stage is retuned, its next() method should be used to extract the value for the stage.
Method Summary
  __init__(self, *stages)
  __iter__(self)
(inherited from Stage)
  next(self)
return current result (inherited from Stage)

Class Variable Summary
class Instruction

Class Variable Details

Instruction

Instruction = twisted.flow.stage.Instruction

Generated by Epydoc 1.1 on Fri Jun 27 03:45:28 2003 http://epydoc.sf.net