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
ThrowableFunc could be made generic in the Exception it throws, this would eliminate the need for broad catch(Exception e) when you are e.g only dealing with IOExceptions (ThrowableFunc & calling method throws IOException)
public interface ThrowingFunc0<R, E extends Exception> extends Function {
R call() throws E;
}
If you think this is a good idea, we are happy to prepare a pull request
The text was updated successfully, but these errors were encountered:
We catch Throwables anyway so it doesn't really matter if it throws Exception or a subclass of exception. See Java's Callable<T> wasn't declared as generic throws.
We are also using ThrowingFunc on non rxjava-async related code, so the interface throwing Exception make it is a bit verbose, same problem with Callable<T>. But I can understand if that change is outside the scope of this project
ThrowableFunc could be made generic in the Exception it throws, this would eliminate the need for broad
catch(Exception e)
when you are e.g only dealing with IOExceptions (ThrowableFunc & calling method throws IOException)If you think this is a good idea, we are happy to prepare a pull request
The text was updated successfully, but these errors were encountered: