Allow SseEventSink.close() to throw IOException
Is it better allowing SseEventSink.close() to throw IOException, then the underlying IOException doesn't need to be wrapped in RuntimeException to throw up ? The caller can decide what to do when catch this IOException.
Hi @jimma I think this makes sense. Would you code up a pull request with this change?
Please code it against the 3.1-SNAPSHOT branch as we cannot change APIs in the master (3.0) branch.
Thanks!
@andymc12 PR is sent : https://github.com/eclipse-ee4j/jaxrs-api/pull/863. Please review, Andy. Thanks.
I do not have a strong opinion about this, but it would not align with other close methods such as on a Client and on a Response (that may close the entity input stream that throws IOException)
Anyway, it is a backward-incompatible change, and as such, it should go into a major version, not minor 3.1, imho.
it is a backward-incompatible change
Agree.