Java 异步调用方法

AtomicReference<Boolean> isSyncSuccess = new AtomicReference<>(false);
CompletableFuture<Void> future = CompletableFuture.runAsync(() ->
{
isSyncSuccess.set(syncErpClothBarCodeInfoService.sync(clothBarCodeInfo_DB.getPlanID()));
});

 

posted @ 2024-11-15 14:07  chengeng  阅读(2)  评论(0编辑  收藏  举报