Non-short-circuit operation consumes the infinite stream. Operation may be completed only by throwing the exception.
Example:
Stream.iterate(0, i -> i + 1).collect(Collectors.toList())