fredia commented on code in PR #24698: URL: https://github.com/apache/flink/pull/24698#discussion_r1584530942
########## flink-core-api/src/main/java/org/apache/flink/api/common/state/v2/StateFuture.java: ########## @@ -49,7 +49,7 @@ public interface StateFuture<T> { * @param action the action to perform before completing the returned StateFuture. * @return the new StateFuture. */ - StateFuture<Void> thenAccept(Consumer<? super T> action); + StateFuture<Void> thenAccept(ConsumerWithException<? super T, ? extends Exception> action); Review Comment: IIUC, when constructing a `CompletableFuture`, the parameters must be of type `runnable`, so the **checked exceptions** must be handled in `CompletableFuture`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org