tubes.fan.Thru(proxyForInterface(IDrain, '_outDrain'))
class documentationtubes.fan
(View In Hierarchy)
A fan.Thru
takes an input
and fans it thru multiple drains-which-produce-founts, such as tubes
:
Your Fount (producing "foo") | v Thru | _/|\_ _/ | \_ / | \ foo2bar foo2baz foo2qux \_ | _/ \_ | _/ \|/ | v Thru | v Your Drain (receiving a combination of foo, bar, baz)
The way you would construct such a flow in code would be:
yourFount.flowTo(Thru([series(foo2bar()), series(foo2baz()), series(foo2qux())])).flowTo(yourDrain)
Method | __init__ | Create a Thru with an
iterable of IDrain . |
Method | flowingFrom | Accept input from fount and produce output filtered by all
of the drain s given to this Thru 's constructor. |
Accept input from fount
and produce output filtered by all
of the drain
s given to this Thru
's constructor.
Parameters | fount | a fount whose outputs should flow through our series of transformations. |
Returns | an output fount which aggregates all the values produced by the drains
given to this Thru 's
constructor. |