Method Summary

Calls consumer for each Piece:
- in no particular order
- potentially calling multiple times on same Piece
- even if Piece might never be returned in the iterator
- it will be called at least once for every piece that is
going to be returned by iterator
Can be used for static analysis/introspection of the block,
without actually executing them.

SequenceBlock

Method Detail

iterator

Create iterator representing all pieces needed to be executed
in this block.
After Iterator.next call returns, master compute of returned Piece is
guaranteed to be called before calling hasNext/next on the iterator.
(allows for iterators logic to depend on the execution dynamically,
and not be only static)

forAllPossiblePieces

Calls consumer for each Piece:
- in no particular order
- potentially calling multiple times on same Piece
- even if Piece might never be returned in the iterator
- it will be called at least once for every piece that is
going to be returned by iterator
Can be used for static analysis/introspection of the block,
without actually executing them.