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

Example:


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