tubes.tube._DrainingTube(object)
class documentationtubes.tube
(View In Hierarchy)
A _DrainingTube
is an ITube
that
unbuffers a list of items. It is an implementation detail of the way that
Diverter
works.
Method | __init__ | Create a _DrainingTube with
some items to drain, a drain to drain them to, and
a fount to flow to that
drain once the items are flowed. |
Method | __repr__ | Display the remaining items to be drained. |
Method | started | Yield each item from the items passed to the constructor,
then switch flow to _eventualUpstream . |
Create a _DrainingTube
with
some items
to drain, a drain
to drain them to, and
a fount
to flow to that
drain
once the items are flowed.
Parameters | items | An iterable of items to drain. (type: iterable) |
eventualUpstream | a fount which should
flow to eventualDownstream once the last item in
items has been passed on. | |
eventualDownstream | a drain which should
receive each item in items and then accept the flow from
eventualUpstream . |