Reports non-short-circuit operations consuming an infinite stream. Such operations can only be completed by throwing an exception.

Example:

Stream.iterate(0, i -> i + 1).collect(Collectors.toList())