gulang12 commented on issue #12775:
URL: https://github.com/apache/dubbo/issues/12775#issuecomment-1659938272
> 可以提供一个独立的 demo 我们验证下吗
CompletableFuture<List<MinutesData>> futureBf =
CompletableFuture.completedFuture(new ArrayList<>());
CompletableFuture<List<MinutesData>> futureAf =
CompletableFuture.completedFuture(new ArrayList<>());
futureBf = CompletableFuture.supplyAsync(() -> {
return queryBfMinuteKline();
});
futureAf = CompletableFuture.supplyAsync(() -> {
return queryAfMinuteKline();
});
public List<MinutesData> queryBfMinuteKline() {
// RPC调用
List<MinutesData> list = serviceA.getBfMinuteKline();
return list;
}
public List<MinutesData> queryAfMinuteKline() {
// RPC调用
List<MinutesData> list = serviceA.getAfMinuteKline();
return list;
}
CompletableFuture.allOf(futureBf, futureAf).join(); // 报序列化异常错误
@AlbumenJ 看以试一下上面的列子
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]