ddimtirov / nuggets

nuggets is (yet another) utility library for Java
https://ddimtirov.github.io/nuggets/javadoc/io/github/ddimitrov/nuggets/package-summary.html
Apache License 2.0
4 stars 1 forks source link

Ambiguous rethrow runnable/callable #68

Closed ddimtirov closed 7 years ago

ddimtirov commented 7 years ago
    for (ICompletableFuture<?> receipt : receipts) {
        rethrow((Callable<?>) receipt::get);
    }
ddimtirov commented 7 years ago

Added rethrowR and rethrowC aliases to avoid the need for casting when methods are disambiguated only by return type.