CompletableFuture.runAsync异常不处理后果

不处理异常的话,线程异常结果会在获取时才会暴露

 

不处理:

 

 获取线程结果异常:

 

posted @ 2023-02-21 14:04  Ash灬  阅读(554)  评论(0)    收藏  举报