Slackbot
06/06/2023, 12:46 PM萧易客
06/06/2023, 1:43 PMfuture
will never get completed. This kind of problem is very hard to troubleshooting cause it could haven’t any log.
CompletableFuture<xxx> future = new CompletableFuture<>();
xxx.whenComplete((v, ex) -> {
xxx.createAsync().whenComplete((v, ex) -> {
if (ex != null) {
future.completeExceptionally(ex);
} else {
future.complete(v);
}
});
})
@Tom (Xiatech)merlimat
06/06/2023, 1:54 PM萧易客
06/06/2023, 1:58 PM萧易客
06/07/2023, 6:06 AMTom (Xiatech)
07/25/2023, 12:33 PM