Generify throwable in CheckedCallable/CheckedRunnable by shakuzen · Pull Request #3326 · micrometer-metrics/micrometer (original) (raw)
This allows usage that catches or throws more a more specific type than Throwable. This is a bit more verbose when declaring a variable of type CheckedCallable or CheckedRunnable, but I expect most usage to be as a lambda or method reference, which avoids the need to do such.
@jonatan-ivanov let me know what you think. I may have overlooked some reason why not to do this. This change wasn't based on user feedback, so I don't feel strongly about doing this but I figured I would open the proposal for discussion.