You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 withCompletionStage
. On the other hand, it's much nicer for users to not have to unwrap exceptions.The text was updated successfully, but these errors were encountered: