tubes._siphon.SiphonPendingValues(object) class documentationtubes._siphon
(View In Hierarchy)
A queue of pending values which can be suspended and resumed, for
representing values pending delivery for a _Siphon.
| Method | __init__ | Undocumented |
| Method | suspend | SiphonPendingValues.popPendingValue
should return suspended. |
| Method | resume | SiphonPendingValues.popPendingValue |
| Method | prepend | Add the given iterator to the beginning of the queue. |
| Method | append | Add the given iterator to the end of the queue. |
| Method | clear | Clear the entire queue. |
| Method | popPendingValue | Get the next value in the leftmost iterator in the deque. |
| Instance Variable | _deque | a deque containing iterators containing queued values. |
| Instance Variable | _suspended | Is this SiphonPendingValues
currently suspended? |
Add the given iterator to the beginning of the queue.
| Parameters | iterator | an iterator of values to deliver via popPendingValue. |
Add the given iterator to the end of the queue.
| Parameters | iterator | an iterator of values to deliver via popPendingValue. |
Get the next value in the leftmost iterator in the deque.
| Parameters | evenIfSuspended | return the next pending value regardless of whether this SiphonPendingValues
is suspended or not. (type: bool) |
| Returns | The next value yielded by the first iterator in the queue, suspended if this SiphonPendingValues
is suspended and evenIfSuspended was not passed, or finished if the queue
is empty. | |