All of the streams callbacks are using java.util.function.*, which don't allow throwing checked exceptions. Should we allow streams to be completed with checked exceptions, by providing a wrapper unchecked exception that gets unwrapped when caught? java.util.concurrent.CompletionException could be a candidate to use.
One argument for not doing this is that CompletionStage doesn't do it, so it may worth being consistent in behavior with CompletionStage. On the other hand, it's much nicer for users to not have to unwrap exceptions.
All of the streams callbacks are using
java.util.function.*, which don't allow throwing checked exceptions. Should we allow streams to be completed with checked exceptions, by providing a wrapper unchecked exception that gets unwrapped when caught?java.util.concurrent.CompletionExceptioncould be a candidate to use.One argument for not doing this is that
CompletionStagedoesn't do it, so it may worth being consistent in behavior withCompletionStage. On the other hand, it's much nicer for users to not have to unwrap exceptions.